Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Zero negative layerThickness along with negative thickness #127

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

trhille
Copy link

@trhille trhille commented Oct 8, 2024

Update layerThickness after negative thicknesses are set to zero. This is required for accurate treatment with Runge-Kutta time integration schemes.

Update layerThickness after negative thicknesses are set to zero.
This is required for accurate treatment with Runge-Kutta time integration
schemes.
@@ -1189,6 +1190,7 @@ subroutine advection_solver(domain, err)
masktmp = 1
thickness = 0.0_RKIND
end where
call li_calculate_layerThickness(meshPool, thickness, layerThickness)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Rather than recalculating layerThickness, what about setting layerThickness to zero wherever thickness gets set to zero? I know it should be safe to recalculate layerThickness at all the 'good' cells but it seems dangerous.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants