Fill the north halo of a 2D x-face (Cu) field. Sign-flipped by
default (negate absent / .true., the true-vector contract —
wind stress, velocity). negate=.false. copies instead: for a
SCALAR carried on a u-face (e.g. the viscous remnant visc_rem_u
— a fraction, not a flux component), the 180-degree fold rotation
still swaps which side of the seam the value sits on, but the
value itself does not change sign (see fold_north_corner_2d’s
negate for the matching corner-stagger contract).
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| real(kind=wp), | intent(inout) | :: | u(nx_face,ny_total) |
x-face field, shape (nx_total+1, ny_total). |
||
| integer, | intent(in) | :: | nx_face | |||
| integer, | intent(in) | :: | ny_total | |||
| integer, | intent(in) | :: | nx_phys | |||
| integer, | intent(in) | :: | ny_phys | |||
| integer, | intent(in) | :: | nghost | |||
| logical, | intent(in), | optional | :: | negate |
|
3D x-face (Cu) north-halo fill, per-level identical. See the 2D
twin for the negate (vector vs. scalar) contract.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| real(kind=wp), | intent(inout) | :: | u(nx_face,ny_total,nz) |
x-face 3D field, shape (nx_total+1, ny_total, nz). |
||
| integer, | intent(in) | :: | nx_face | |||
| integer, | intent(in) | :: | ny_total | |||
| integer, | intent(in) | :: | nz | |||
| integer, | intent(in) | :: | nx_phys | |||
| integer, | intent(in) | :: | ny_phys | |||
| integer, | intent(in) | :: | nghost | |||
| logical, | intent(in), | optional | :: | negate |
|