Changeset 13987 for NEMO/branches/2020/dev_r13312_AGRIF-03-04_jchanut_vinterp_tstep/src/TOP/trcini.F90
- Timestamp:
- 2020-12-02T13:22:58+01:00 (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
NEMO/branches/2020/dev_r13312_AGRIF-03-04_jchanut_vinterp_tstep/src/TOP/trcini.F90
r13286 r13987 16 16 !! top_alloc : allocate the TOP arrays 17 17 !!---------------------------------------------------------------------- 18 USE par_trc ! need jptra, number of passive tracers 18 19 USE oce_trc ! shared variables between ocean and passive tracers 19 20 USE trc ! passive tracers common variables … … 95 96 CHARACTER (len=25) :: charout 96 97 REAL(wp), DIMENSION(jpi,jpj,jpk,jptra) :: zzmsk 97 CHARACTER (len=25), DIMENSION(jptra) :: clseb98 98 !!---------------------------------------------------------------------- 99 99 ! … … 131 131 CALL prt_ctl_info( charout, cdcomp = 'top' ) 132 132 CALL prt_ctl( tab4d_1=tr(:,:,:,:,Kmm), mask1=tmask, clinfo=ctrcnm ) 133 DO jn = 1, jptra134 zzmsk(:,:,:,jn) = tmask(:,:,:)135 WRITE(clseb(jn),'(a,i2.2)') 'seb ', jn136 END DO137 CALL prt_ctl( tab4d_1=zzmsk, mask1=tmask, clinfo=clseb )138 133 ENDIF 139 134 9000 FORMAT(' tracer nb : ',i2,' name :',a10,' initial content :',e18.10) … … 254 249 ! 255 250 ELSE ! Initialisation of tracer from a file that may also be used for damping 256 !!gm BUG ? if damping and restart, what's happening ?257 251 IF( ln_trcdta .AND. nb_trcdta > 0 ) THEN 258 252 ! update passive tracers arrays with input data read from file … … 260 254 IF( ln_trc_ini(jn) ) THEN 261 255 jl = n_trc_index(jn) 262 CALL trc_dta( nit000, Kmm, sf_trcdta(jl), rf_trfac(jl), tr(:,:,:,jn,Kmm) ) 263 ! 264 ! deallocate data structure if data are not used for damping 265 IF( .NOT.ln_trcdmp .AND. .NOT.ln_trcdmp_clo ) THEN 266 IF(lwp) WRITE(numout,*) 'trc_ini_state: deallocate data arrays as they are only used to initialize the run' 267 DEALLOCATE( sf_trcdta(jl)%fnow ) 268 IF( sf_trcdta(jl)%ln_tint ) DEALLOCATE( sf_trcdta(jl)%fdta ) 269 ! 270 ENDIF 256 CALL trc_dta( nit000, jl, tr(:,:,:,jn,Kmm) ) 271 257 ENDIF 272 258 END DO
Note: See TracChangeset
for help on using the changeset viewer.