- Timestamp:
- 2016-06-13T14:50:45+02:00 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2015/nemo_v3_6_STABLE/NEMOGCM/NEMO/TOP_SRC/trcini.F90
r6606 r6688 30 30 USE trcsub ! variables to substep passive tracers 31 31 USE lib_mpp ! distribued memory computing library 32 USE wrk_nemo33 32 USE sbc_oce 34 33 USE trcice ! tracers in sea ice … … 62 61 INTEGER :: jk, jn, jl ! dummy loop indices 63 62 CHARACTER (len=25) :: charout 64 REAL(wp), POINTER, DIMENSION(:,:,:,:) :: ztrcdta65 63 !!--------------------------------------------------------------------- 66 64 ! … … 122 120 IF( ln_trcdta .AND. nb_trcdta > 0 ) THEN ! Initialisation of tracer from a file that may also be used for damping 123 121 ! 124 CALL wrk_alloc( jpi, jpj, jpk, nb_trcdta, ztrcdta )125 !126 CALL trc_dta( nit000, ztrcdta ) ! read tracer data at nit000127 !128 122 DO jn = 1, jptra 129 123 IF( ln_trc_ini(jn) ) THEN ! update passive tracers arrays with input data read from file 130 124 jl = n_trc_index(jn) 131 trn(:,:,:,jn) = ztrcdta(:,:,:,jl) * rf_trfac(jl) 125 CALL trc_dta( nit000, sf_trcdta(jl), rf_trfac(jl) ) ! read tracer data at nit000 126 trn(:,:,:,jn) = sf_trcdta(jl)%fnow(:,:,:) 127 IF( .NOT.ln_trcdmp .AND. .NOT.ln_trcdmp_clo ) THEN !== deallocate data structure ==! 128 ! (data used only for initialisation) 129 IF(lwp) WRITE(numout,*) 'trc_dta: deallocate data arrays as they are only used to initialize the run' 130 DEALLOCATE( sf_trcdta(jl)%fnow ) ! arrays in the structure 131 IF( sf_trcdta(jl)%ln_tint ) DEALLOCATE( sf_trcdta(jl)%fdta ) 132 ! 133 ENDIF 132 134 ENDIF 133 135 ENDDO 134 136 ! 135 CALL wrk_dealloc( jpi, jpj, jpk, nb_trcdta, ztrcdta )136 !137 137 ENDIF 138 138 !
Note: See TracChangeset
for help on using the changeset viewer.