Skip to content

Initialization of z-grid: non-monotonous increase of zt #670

Open
@fabien-roquet

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions