Release the persistent tau-blend scratch. Idempotent (safe on an
already-clean workspace — the driver calls it unconditionally at
ocean teardown, next to ice_evp_cleanup).
subroutine ice_ocean_stress_cleanup() !! Release the persistent tau-blend scratch. Idempotent (safe on an !! already-clean workspace — the driver calls it unconditionally at !! ocean teardown, next to `ice_evp_cleanup`). if (.not. stress_scratch_ready) return !$acc exit data delete(ci_scratch, mis_scratch, mice_scratch) deallocate (ci_scratch, mis_scratch, mice_scratch) ss_nx = 0 ss_ny = 0 stress_scratch_ready = .false. end subroutine ice_ocean_stress_cleanup