- Timestamp:
- 2019-11-19T18:30:57+01:00 (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
NEMO/branches/2019/ENHANCE-02_ISF_nemo/tests/ISOMIP+/MY_SRC/isf.F90
r11889 r11931 22 22 PRIVATE 23 23 24 PUBLIC isf_alloc, isf_alloc_par, isf_alloc_cav, isf_alloc_cpl 24 PUBLIC isf_alloc, isf_alloc_par, isf_alloc_cav, isf_alloc_cpl, isf_dealloc_cpl 25 25 ! 26 26 !------------------------------------------------------- … … 175 175 !! *** ROUTINE isf_alloc_cpl *** 176 176 !! 177 !! ** Purpose : 178 !! 179 !! ** Method : 177 !! ** Purpose : allocate array use for the ice sheet coupling 180 178 !! 181 179 !!---------------------------------------------------------------------- … … 202 200 END SUBROUTINE isf_alloc_cpl 203 201 202 SUBROUTINE isf_dealloc_cpl() 203 !!--------------------------------------------------------------------- 204 !! *** ROUTINE isf_dealloc_cpl *** 205 !! 206 !! ** Purpose : de-allocate useless public 3d array used for ice sheet coupling 207 !! 208 !!---------------------------------------------------------------------- 209 INTEGER :: ierr, ialloc 210 !!---------------------------------------------------------------------- 211 ierr = 0 212 ! 213 DEALLOCATE( risfcpl_ssh, risfcpl_tsc, risfcpl_vol, STAT=ialloc ) 214 ierr = ierr + ialloc 215 ! 216 CALL mpp_sum ( 'isf', ierr ) 217 IF( ierr /= 0 ) CALL ctl_stop('STOP','isfcpl: failed to deallocate arrays.') 218 ! 219 END SUBROUTINE isf_dealloc_cpl 220 204 221 SUBROUTINE isf_alloc() 205 222 !!--------------------------------------------------------------------- 206 223 !! *** ROUTINE isf_alloc *** 207 224 !! 208 !! ** Purpose : 209 !! 210 !! ** Method : 225 !! ** Purpose : allocate array used for the ice shelf cavity (cav and par) 211 226 !! 212 227 !!----------------------------------------------------------------------
Note: See TracChangeset
for help on using the changeset viewer.