Periodic wrap (+ north fold) of an x-face drain field (nx+1,ny,nz).
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| real(kind=wp), | intent(inout) | :: | fld(nx+1,ny,nz) | |||
| integer, | intent(in) | :: | nx | |||
| integer, | intent(in) | :: | ny | |||
| integer, | intent(in) | :: | nz | |||
| integer, | intent(in) | :: | nx_phys | |||
| integer, | intent(in) | :: | ny_phys | |||
| integer, | intent(in) | :: | nghost | |||
| logical, | intent(in) | :: | per_x | |||
| logical, | intent(in) | :: | per_y | |||
| logical, | intent(in) | :: | fold_n |
subroutine drain_wrap_face_x(fld, nx, ny, nz, nx_phys, ny_phys, nghost, & per_x, per_y, fold_n) !! Periodic wrap (+ north fold) of an x-face drain field (nx+1,ny,nz). integer, intent(in) :: nx, ny, nz, nx_phys, ny_phys, nghost real(wp), intent(inout) :: fld(nx + 1, ny, nz) logical, intent(in) :: per_x, per_y, fold_n if (per_x .or. per_y) then call ocean_periodic_wrap_face_x_3d(fld, nx + 1, ny, nz, & nx_phys, ny_phys, nghost, per_x, per_y) end if if (fold_n) call fold_north_u_face(fld, nx + 1, ny, nz, nx_phys, ny_phys, nghost) end subroutine drain_wrap_face_x