- Timestamp:
- 2016-11-17T12:52:25+01:00 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2016/dev_r7233_CMIP6_diags_trunk_version/NEMOGCM/NEMO/OPA_SRC/TRA/traadv.F90
r6140 r7250 26 26 USE ldftra ! lateral diffusion: eddy diffusivity & EIV coeff. 27 27 USE ldfslp ! Lateral diffusion: slopes of neutral surfaces 28 USE trd_oce ! trends: ocean variables 29 USE trdtra ! trends manager: tracers 28 30 ! 29 31 USE in_out_manager ! I/O manager … … 128 130 !!gm ??? 129 131 ! 132 IF( l_trdtra ) THEN !* Save ta and sa trends 133 CALL wrk_alloc( jpi, jpj, jpk, ztrdt, ztrds ) 134 ztrdt(:,:,:) = tsa(:,:,:,jp_tem) 135 ztrds(:,:,:) = tsa(:,:,:,jp_sal) 136 ENDIF 137 ! 130 138 SELECT CASE ( nadv ) !== compute advection trend and add it to general trend ==! 131 139 ! … … 145 153 END SELECT 146 154 ! 147 ! ! print mean trends (used for debugging) 155 IF( l_trdtra ) THEN ! save the advective trends for further diagnostics 156 DO jk = 1, jpkm1 157 ztrdt(:,:,jk) = tsa(:,:,jk,jp_tem) - ztrdt(:,:,jk) 158 ztrds(:,:,jk) = tsa(:,:,jk,jp_sal) - ztrds(:,:,jk) 159 END DO 160 CALL trd_tra( kt, 'TRA', jp_tem, jptra_totad, ztrdt ) 161 CALL trd_tra( kt, 'TRA', jp_sal, jptra_totad, ztrds ) 162 CALL wrk_dealloc( jpi, jpj, jpk, ztrdt, ztrds ) 163 ENDIF 164 ! ! print mean trends (used for debugging) 148 165 IF(ln_ctl) CALL prt_ctl( tab3d_1=tsa(:,:,:,jp_tem), clinfo1=' adv - Ta: ', mask1=tmask, & 149 166 & tab3d_2=tsa(:,:,:,jp_sal), clinfo2= ' Sa: ', mask2=tmask, clinfo3='tra' )
Note: See TracChangeset
for help on using the changeset viewer.