Open
Description
The procedure to compute zt, dzw and dzt in the function u_centered_grid of numerics.py can lead to non-monotonous zt grid. The issue was already there in the pyOM fortran code.
The constraint dzt_i = zw_i - zw_i-1, dzw_i = zt_(i+1)-zt_i , zw_i = 0.5(zt_i+zt_(i+1)) does not test/enforce whether zt is increasing monotonously. A better method would be to enforce that zt are at mid-depth of zw points:
dzt_i = zw_i - zw_i-1, dzw_i = zt_(i+1)-zt_i , zt_i = 0.5(zw_i+zw_(i+1))
Metadata
Assignees
Labels
No labels