-
Notifications
You must be signed in to change notification settings - Fork 13
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
lgrngn: error in 2D run #105
Comments
negative th is really bad ;) After the error message, th and RHS of th should be outputted. RHS of th should be 0, can you check if it is so? Can you look at the outputted th array to check at what height the negative th appears? |
@pdziekan - I have checked the things you asked about. The RHS is zero. Since it starts with negative rv I have plotted the values that are outputted as warning. Looks like it escalates quickly ;) I also plotted theta outputed when the simulation crashes in reasonable colorscale (left panel) and in actual range (right panel). Ignore the x and y axis ticks - those are just the gridpoint numbers. It looks like some issue with super-droplet condensation/evaporation maybe? It is happening inside the cloud layer. |
Though it could also be related to updraft velocity, not sure. Plotting things from my last successful output doesn't reveal anything. |
I was also thinking, in those negtozero functions we should have a limit based on the absolute value of the number we want to overwrite to zero. If that number is greater that some threshold we should just error and abort. Seems like this simulation should have crashed much sooner |
@trontrytel I'm pretty sure that the negative th is not a result of condensation/evaporation, because there is a negcheck right after that forcing is applied and it doesn't find any negative values. Negative th is found after the advection routine. I wonder if the negative th has something to do with the negative rv.
NOTE: once subsidence is disabled, negative th may not appear for the same rng_seed as before. Therefore you would need to run an ensemble of simulations to know if getting rid of negative rv also helps for the negative th issue. |
I'll test that. I also have a similar error in blk1m simulation:
that soon leads to
So your guess looks possible now. I'll start debuggig from the bulk_1m simulation since its faster and cheaper |
I run 20 blk_1m simulations with subsidence disabled and I did not encounter any negative rv or negative th errors. It could still be a coincidence, but maybe not |
I'm getting negative rv values:
And soon after an error:
for this run from master:
The text was updated successfully, but these errors were encountered: