Skip to content

Conversation

@PengyangSong
Copy link
Collaborator

With linfs in cavity, the model cannot run for >100 years due to ssh blowup. Therefore we need to change it back to rigid lid.
In oce_ale.F90, it works like:

  • compute_ssh_rhs_ale compute ssh_rhs, cavity values are not zero.
  • solve_ssh_ale solves d_eta, cavity values are not zero.
  • update_vel includes barotropic pressure gradient of d_eta.
  • compute_hbar_ale makes no change in cavity layer thickness hbar.
  • At cavity nodes, we skip updating eta_n, so it is always zero.

Pengyang Song added 3 commits April 14, 2025 12:09
…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)
@PengyangSong PengyangSong changed the title Cavity bugfix Cavity bugfix: from linfs to rigid lid Apr 14, 2025
@JanStreffing JanStreffing self-requested a review April 15, 2025 19:30
@JanStreffing JanStreffing merged commit 6365426 into main Apr 15, 2025
7 checks passed
@JanStreffing JanStreffing deleted the cavity_bugfix branch April 15, 2025 19:31
@PengyangSong
Copy link
Collaborator Author

@patrickscholz Could you have a look on my commits here?

@patrickscholz
Copy link
Contributor

patrickscholz commented Apr 16, 2025

@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
Copy link
Contributor

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 ?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yes.

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.

4 participants