Close the group: every packed slab must have been unpacked.
subroutine ocean_fold_end() !! Close the group: every packed slab must have been unpacked. if (.not. fx_active) return if (.not. fx_open) error stop "rdb_ocean_fold_exchange: ocean_fold_end without begin" if (any(fx_uoff /= fx_poff)) then error stop "rdb_ocean_fold_exchange: group closed with fields left unpacked" end if fx_open = .false. fx_sent = .false. end subroutine ocean_fold_end