Allocate eta_ib/eta_seam (host, before enter_data). No-op when
.not. enable (bit-identical; zero extra device memory). Mirrors
tides_configure_astronomy.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(ocean_p_surf_t), | intent(inout) | :: | this | |||
| integer, | intent(in) | :: | nx | |||
| integer, | intent(in) | :: | ny |
subroutine p_surf_configure(this, nx, ny) !! Allocate `eta_ib`/`eta_seam` (host, before enter_data). No-op when !! `.not. enable` (bit-identical; zero extra device memory). Mirrors !! `tides_configure_astronomy`. class(ocean_p_surf_t), intent(inout) :: this integer, intent(in) :: nx, ny if (.not. this%enable) return if (allocated(this%eta_ib)) deallocate (this%eta_ib) if (allocated(this%eta_seam)) deallocate (this%eta_seam) allocate (this%eta_ib(nx, ny), source=0.0_wp) allocate (this%eta_seam(nx, ny), source=0.0_wp) end subroutine p_surf_configure