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

Fixes for running with open boundary conditions over land #108

Merged
merged 9 commits into from
Aug 22, 2024

Conversation

fjansson
Copy link
Contributor

land surface model: fix sign of rain flux, add some limits and diagnostics.
microphysics: run only up to kmax. If microphysics is done at k1, and open boundaries keep the k1 layer raining, it can form an "infinite" rain source, since cloud water is not removed from k1.
modgenstat: don't use halflev_kappa with open boundaries, because it can cause out-of bounds accesses at the top when w != 0. This change only affects statistics, not the time stepping.

@fjansson fjansson requested a review from esclapez August 12, 2024 10:43
For using higher-order advection schemes which need more neighbor points.
The ghost cell planes further away are filled with the same values as
the origininal single plane.
found by Frans Liqui Lung
With open boundaries, u,v,w need some boundary cells to be time-stepped:
u0(i2,j,k), v0(i,j2,k) and w0(i,j,k1)
start loops from i=2, not 1. starting point adjusted for consistency
with j and a bit less work, otherwise no practical difference.

loop end point extended to j2 only when open boundaries are enabled and
only on the MPI tiles where it's needed.
@fjansson fjansson merged commit 3902cb2 into dev Aug 22, 2024
50 checks passed
@fjansson fjansson deleted the dev-ruisdael-fixes branch August 28, 2024 09:35
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