-
Notifications
You must be signed in to change notification settings - Fork 67
Cavity bugfix: from linfs to rigid lid #701
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
Conversation
…lowup. Therefore the best way to treat cavity is still rigid lid. This commit is to chnage back from my previous commit 0f64ece.
…tter if you use linfs/zstar in the open ocean.
…you really want to take this pressure effect into account, it is already coded with use_cavity_fw2press in subroutine compute_ssh_rhs_ale (with an explicit method, alpha=1)
|
@patrickscholz Could you have a look on my commits here? |
|
@PengyangSong: Can you provide a bit more information, whats happening with the blowup? Are we speaking about standalone or coupled, which setup, linfs or zstar, where exactly does it blowup and under which conditions. Usually a model doesnt blowup after +100 years where it already run stable ? Is the ssh drifting ? ... |
| if (.not. trim(which_ALE)=='linfs') then | ||
| !$OMP PARALLEL DO | ||
| do n=1,myDim_nod2D | ||
| if (ulevels_nod2D(n)>1) cycle |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this change here affects the zstar case the upper change in line 1931 will affect the linfs case ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes.
With linfs in cavity, the model cannot run for >100 years due to
sshblowup. Therefore we need to change it back to rigid lid.In
oce_ale.F90, it works like:compute_ssh_rhs_alecomputessh_rhs, cavity values are not zero.solve_ssh_alesolvesd_eta, cavity values are not zero.update_velincludes barotropic pressure gradient ofd_eta.compute_hbar_alemakes no change in cavity layer thicknesshbar.eta_n, so it is always zero.