You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Comparing pkg/layers output for meridional overturning circulation computations between pressure and z-coordinates, I have the impression that pkg/layers code does not work properly in pressure coordinates. In the code, there are references to w-points above and below, directions from "warm" to "cold", which has the opposite meaning in pressure coordinates than in z-coordinates and to the surface level as k=1, e.g.
I layers_bounds_w(1,iLa),Nlayers-1,mSteps,sNx,sNy,TatC,
O kgcw,
I myThid )
Further, I have the impression that the following lines of code are not doing what they are supposed to do (replacing the .EQV. operator, which is most likely my own fault):
There might be some problems with layers_thermodynamics.F (e.g., issue Layers package budget #60) but this piece of code is not used to compute the meridional overturning in density coordinate (routine is empty when LAYERS_THERMODYNAMICS is "#undef"). So, in some sense, it's a different issue.
The layers_fluxcalc.F has been used to get the transport in potential density coordinate or in temperature coordinate, with different ordering direction (temp increasing from bottom to top but density decreasing from bottom to top), but some comments might not be accurate. Also, I vaguely remember (but could be wrong) that it has also been used for the atmosphere in P-coordinate. This does not mean the problem you saw is not related to p-coord but its not that the implementation is completely missing.
pkg/layers
output for meridional overturning circulation computations between pressure and z-coordinates, I have the impression thatpkg/layers
code does not work properly in pressure coordinates. In the code, there are references to w-points above and below, directions from "warm" to "cold", which has the opposite meaning in pressure coordinates than in z-coordinates and to the surface level ask=1
, e.g.MITgcm/pkg/layers/layers_thermodynamics.F
Lines 67 to 87 in f1a2968
or
MITgcm/pkg/layers/layers_fluxcalc.F
Lines 476 to 485 in f1a2968
or
MITgcm/pkg/layers/layers_fluxcalc.F
Lines 582 to 586 in f1a2968
MITgcm/pkg/layers/layers_fluxcalc.F
Lines 765 to 767 in f1a2968
and should probably be
The text was updated successfully, but these errors were encountered: