- Timestamp:
- 2011-03-01T20:04:06+01:00 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/dev_r2586_dynamic_mem/NEMOGCM/NEMO/TOP_SRC/TRP/trdmld_trc.F90
r2633 r2636 23 23 USE zdfddm , ONLY : avs !: salinity vertical diffusivity coeff. at w-point 24 24 # endif 25 USE trcnam_trp ! passive tracers transport namelist variables25 USE trcnam_trp ! passive tracers transport namelist variables 26 26 USE trdmod_trc_oce ! definition of main arrays used for trends computations 27 27 USE in_out_manager ! I/O manager … … 30 30 USE ioipsl ! NetCDF library 31 31 USE lbclnk ! ocean lateral boundary conditions (or mpp link) 32 USE lib_mpp ! MPP library 32 33 USE trdmld_trc_rst ! restart for diagnosing the ML trends 33 34 USE prtctl ! print control … … 47 48 CHARACTER (LEN=40) :: clhstnam ! name of the trends NetCDF file 48 49 INTEGER :: nmoymltrd 49 INTEGER :: ndextrd1(jpi*jpj)50 INTEGER, ALLOCATABLE, SAVE, DIMENSION(:) :: ndextrd1 50 51 INTEGER, DIMENSION(jptra) :: nidtrd, nh_t 51 52 INTEGER :: ndimtrd1 … … 87 88 ztmltrdbio2(jpi,jpj,jpdiabio) , & 88 89 #endif 89 Stat=trd_mld_trc_alloc) 90 91 IF(trd_mld_trc_alloc/=0)THEN 92 CALL ctl_warn('trd_mld_trc_alloc : failed to allocate arrays.') 93 END IF 94 90 & ndextrd1(jpi*jpj) , STAT=trd_mld_trc_alloc) 91 ! 92 IF( lk_mpp ) CALL mpp_sum ( trd_mld_trc_alloc ) 93 IF( trd_mld_trc_alloc /=0 ) CALL ctl_warn('trd_mld_trc_alloc : failed to allocate arrays.') 95 94 END FUNCTION trd_mld_trc_alloc 96 95 … … 125 124 !!---------------------------------------------------------------------- 126 125 127 IF(wrk_in_use(2, 1))THEN 128 CALL ctl_stop('trd_mld_trc_zint : requested workspace array unavailable.') 129 RETURN 126 IF( wrk_in_use(2, 1) ) THEN 127 CALL ctl_stop('trd_mld_trc_zint : requested workspace array unavailable') ; RETURN 130 128 END IF 131 129 … … 213 211 END SELECT 214 212 215 IF(wrk_not_released(2, 1))THEN 216 CALL ctl_stop('trd_mld_trc_zint : failed to release workspace array.') 217 END IF 218 213 IF( wrk_not_released(2, 1) ) CALL ctl_stop('trd_mld_trc_zint : failed to release workspace array.') 214 ! 219 215 END SUBROUTINE trd_mld_trc_zint 220 216 217 221 218 SUBROUTINE trd_mld_bio_zint( ptrc_trdmld, ktrd ) 222 219 !!---------------------------------------------------------------------- … … 387 384 !! - See NEMO documentation (in preparation) 388 385 !!---------------------------------------------------------------------- 389 USE wrk_nemo, ONLY: wrk_in_use, wrk_not_released390 USE wrk_nemo, wrk_3d_1, wrk_3d_2, wrk_3d_3, wrk_3d_4, &391 wrk_3d_5, wrk_3d_6, wrk_3d_7, wrk_3d_8, &392 wrk_3d_9386 USE wrk_nemo, ONLY: wrk_in_use, wrk_not_released 387 USE wrk_nemo, ONLY: wrk_3d_1, wrk_3d_2, wrk_3d_3, wrk_3d_4 388 USE wrk_nemo, ONLY: wrk_3d_5, wrk_3d_6, wrk_3d_7, wrk_3d_8, wrk_3d_9 389 ! 393 390 INTEGER, INTENT( in ) :: kt ! ocean time-step index 394 391 INTEGER :: ji, jj, jk, jl, ik, it, itmod, jn … … 414 411 !!---------------------------------------------------------------------- 415 412 416 IF(wrk_in_use(3, 1,2,3,4,5,6,7,8,9))THEN 417 CALL ctl_stop('trd_mld_trc : requested workspace arrays unavailable.') 418 RETURN 419 END IF 413 IF( wrk_in_use(3, 1,2,3,4,5,6,7,8,9) ) THEN 414 CALL ctl_stop('trd_mld_trc : requested workspace arrays unavailable') ; RETURN 415 ENDIF 420 416 ! Set-up pointers into sub-arrays of workspaces 421 417 ztmltot => wrk_3d_1(:,:,1:jptra)
Note: See TracChangeset
for help on using the changeset viewer.