- Timestamp:
- 2016-11-18T08:18:45+01:00 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2015/dev_r5003_MERCATOR6_CRS/NEMOGCM/NEMO/TOP_SRC/trcini.F90
r7217 r7256 25 25 USE trcini_my_trc ! MY_TRC initialisation 26 26 USE trcdta ! initialisation from files 27 USE zpshde,ONLY: zps_hde, zps_hde_isf ! partial step: hor. derivative (zps_hde routine) 28 USE zpshde_crs ! partial step: hor. derivative (zps_hde routine) 27 USE daymod ! calendar manager 29 28 USE prtctl_trc ! Print control passive tracers (prt_ctl_trc_init routine) 30 29 USE trcsub ! variables to substep passive tracers … … 63 62 INTEGER :: jk, jn, jl ! dummy loop indices 64 63 CHARACTER (len=25) :: charout 65 REAL(wp), POINTER, DIMENSION(:,:,:) :: ztrcdta ! 4D workspace66 64 !!--------------------------------------------------------------------- 67 65 ! … … 123 121 IF( ln_trcdta .AND. nb_trcdta > 0 ) THEN ! Initialisation of tracer from a file that may also be used for damping 124 122 ! 125 CALL wrk_alloc( jpi, jpj, jpk, ztrcdta ) ! Memory allocation126 !127 123 DO jn = 1, jptra 128 124 IF( ln_trc_ini(jn) ) THEN ! update passive tracers arrays with input data read from file 129 125 jl = n_trc_index(jn) 130 CALL trc_dta( nit000, sf_trcdta(jl),rf_trfac(jl) ) ! read tracer data at nit000 131 ztrcdta(:,:,:) = sf_trcdta(jl)%fnow(:,:,:) 132 trn(:,:,:,jn) = ztrcdta(:,:,:) * tmask(:,:,:) 126 CALL trc_dta( nit000, sf_trcdta(jl), rf_trfac(jl) ) ! read tracer data at nit000 127 trn(:,:,:,jn) = sf_trcdta(jl)%fnow(:,:,:) 133 128 IF( .NOT.ln_trcdmp .AND. .NOT.ln_trcdmp_clo ) THEN !== deallocate data structure ==! 134 129 ! (data used only for initialisation) … … 140 135 ENDIF 141 136 ENDDO 142 CALL wrk_dealloc( jpi, jpj, jpk, ztrcdta )137 ! 143 138 ENDIF 144 139 ! … … 148 143 149 144 tra(:,:,:,:) = 0._wp 150 IF( ln_crs_top) THEN151 CALL zps_hde_crs( nit000, jptra, trn, gtru, gtrv )152 ELSE153 IF( ln_zps .AND. .NOT. lk_c1d .AND. .NOT. ln_isfcav ) & ! Partial steps: before horizontal gradient of passive154 & CALL zps_hde ( nit000, jptra, trn, gtru, gtrv ) ! Partial steps: before horizontal gradient155 IF( ln_zps .AND. .NOT. lk_c1d .AND. ln_isfcav ) &156 & CALL zps_hde_isf( nit000, jptra, trn, pgtu=gtru, pgtv=gtrv, pgtui=gtrui, pgtvi=gtrvi ) ! tracers at the bottom ocean level157 ENDIF158 159 145 ! 160 146 IF( nn_dttrc /= 1 ) CALL trc_sub_ini ! Initialize variables for substepping passive tracers
Note: See TracChangeset
for help on using the changeset viewer.