Snapshot values_init from the current state. Call once
after the IC is set + the EOS has run, before stepping.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(ocean_budgets_t), | intent(inout) | :: | this | |||
| type(multilayer_state_t), | intent(in) | :: | ms |
subroutine ocean_budgets_init_snapshot(this, ms) !! Snapshot `values_init` from the current state. Call once !! after the IC is set + the EOS has run, before stepping. class(ocean_budgets_t), intent(inout) :: this type(multilayer_state_t), intent(in) :: ms if (.not. allocated(this%mask)) then allocate (this%mask, source=diag_mask_global(this%grid)) end if call this%evaluate(ms) this%values_init = this%values this%has_snapshot = .true. end subroutine ocean_budgets_init_snapshot