Minimal init — the real allocation happens in p_surf_configure
once the namelist is available (host, before enter_data).
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(ocean_p_surf_t), | intent(inout) | :: | this | |||
| type(hgrid_t), | intent(in) | :: | grid |
subroutine ocean_p_surf_init(this, grid) !! Minimal init — the real allocation happens in `p_surf_configure` !! once the namelist is available (host, before enter_data). class(ocean_p_surf_t), intent(inout) :: this type(hgrid_t), intent(in) :: grid if (.false.) this%rho0 = real(grid%nx_total, wp) this%is_init = .true. end subroutine ocean_p_surf_init