For an equispaced vertical grid, the vertical grid spacing is constant and
is given by
, where
is the maximum depth in the domain.
In the rare case for which the minimum depth,
in the domain is less than
, there
are not enough grid points to resolve the region with the smallest depth. If this is the
case and vertgridcorrect
is set to 1, then the number of vertical grid cells is adjusted such that
,
such that
.