Register a 3-D time-varying field f(x, y, z, t). nz_src is
the source z-level count (the consumer’s own concern — the
reader validates it against the file’s z dim and does NOT flip
or remap k; see the module docstring).
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(ocean_data_input_t), | intent(inout) | :: | this | |||
| character(len=*), | intent(in) | :: | file | |||
| character(len=*), | intent(in) | :: | var | |||
| type(hgrid_t), | intent(in) | :: | grid | |||
| integer, | intent(in) | :: | nz_src | |||
| integer, | intent(in) | :: | dest_n1 | |||
| integer, | intent(in) | :: | dest_n2 | |||
| integer, | intent(in) | :: | dest_n3 | |||
| integer, | intent(in) | :: | dest_i0 | |||
| integer, | intent(in) | :: | dest_j0 | |||
| integer, | intent(out) | :: | id | |||
| character(len=*), | intent(in), | optional | :: | time_mode | ||
| real(kind=wp), | intent(in), | optional | :: | cycle_period | ||
| real(kind=wp), | intent(in), | optional | :: | t_offset | ||
| real(kind=wp), | intent(in), | optional | :: | t_scale | ||
| real(kind=wp), | intent(in), | optional | :: | scale | ||
| real(kind=wp), | intent(in), | optional | :: | add_offset | ||
| integer, | intent(in), | optional | :: | oor | ||
| integer, | intent(out), | optional | :: | ierr |
subroutine ocean_data_input_register_3d(this, file, var, grid, nz_src, dest_n1, dest_n2, & dest_n3, dest_i0, dest_j0, id, time_mode, & cycle_period, t_offset, t_scale, scale, add_offset, oor, & ierr) !! Register a 3-D time-varying field `f(x, y, z, t)`. `nz_src` is !! the source z-level count (the consumer's own concern — the !! reader validates it against the file's z dim and does NOT flip !! or remap k; see the module docstring). class(ocean_data_input_t), intent(inout) :: this character(len=*), intent(in) :: file, var type(hgrid_t), intent(in) :: grid integer, intent(in) :: nz_src, dest_n1, dest_n2, dest_n3, dest_i0, dest_j0 integer, intent(out) :: id character(len=*), intent(in), optional :: time_mode real(wp), intent(in), optional :: cycle_period, t_offset, t_scale, scale, add_offset integer, intent(in), optional :: oor integer, intent(out), optional :: ierr call register_common(this, file, var, .true., & grid%i_offset_global + 1, grid%j_offset_global + 1, & grid%nx_phys, grid%ny_phys, nz_src, & dest_i0, dest_j0, dest_n1, dest_n2, dest_n3, & time_mode, cycle_period, t_offset, t_scale, scale, add_offset, oor, id, & ierr=ierr) end subroutine ocean_data_input_register_3d