Changeset 1111 for trunk/NEMO/OPA_SRC/TRA/tranpc.F90
- Timestamp:
- 2008-06-13T16:35:46+02:00 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/NEMO/OPA_SRC/TRA/tranpc.F90
r719 r1111 11 11 !! suppression of common work arrays 12 12 !! 8.5 ! 02-06 (G. Madec) free form F90 13 !! 9.0 ! 08-06 (G. Madec) applied on ta, sa and called before tranxt in step.F90 13 14 !!---------------------------------------------------------------------- 14 15 … … 38 39 !!---------------------------------------------------------------------- 39 40 !! OPA 9.0 , LOCEAN-IPSL (2005) 40 !! $ Header$41 !! $Id:$ 41 42 !! Software governed by the CeCILL licence (modipsl/doc/NEMO_CeCILL.txt) 42 43 !!---------------------------------------------------------------------- … … 49 50 !! 50 51 !! ** Purpose : Non penetrative convective adjustment scheme. solve 51 !! the static instability of the water column (now, after the swap)52 !! the static instability of the water column on after fields 52 53 !! while conserving heat and salt contents. 53 54 !! … … 57 58 !! l_trdtra=T: the trend associated with this algorithm is saved. 58 59 !! 59 !! ** Action : - (t n,sn) after the application od the npc scheme60 !! ** Action : - (ta,sa) after the application od the npc scheme 60 61 !! - save the associated trends (ttrd,strd) ('key_trdtra') 61 62 !! … … 84 85 inpci = 0 85 86 86 CALL eos( t n, sn, rhd, zrhop ) ! Potential density87 88 89 IF( l_trdtra ) THEN ! Save t n and sntrends90 ztrdt(:,:,:) = t n(:,:,:)91 ztrds(:,:,:) = s n(:,:,:)87 CALL eos( ta, sa, rhd, zrhop ) ! Potential density 88 89 90 IF( l_trdtra ) THEN ! Save ta and sa trends 91 ztrdt(:,:,:) = ta(:,:,:) 92 ztrds(:,:,:) = sa(:,:,:) 92 93 ENDIF 93 94 … … 160 161 ! 161 162 ze3tot= fse3t(ji,jj,ikup) 162 zta = t n(ji,jj,ikup)163 zsa = s n(ji,jj,ikup)163 zta = ta (ji,jj,ikup) 164 zsa = sa (ji,jj,ikup) 164 165 zraua = zrhop(ji,jj,ikup) 165 166 ! … … 171 172 ze3dwn = fse3t(ji,jj,jkdown) 172 173 ze3tot = ze3tot + ze3dwn 173 zta = ( zta*(ze3tot-ze3dwn) + t n(ji,jj,jkdown)*ze3dwn )/ze3tot174 zsa = ( zsa*(ze3tot-ze3dwn) + s n(ji,jj,jkdown)*ze3dwn )/ze3tot174 zta = ( zta*(ze3tot-ze3dwn) + ta(ji,jj,jkdown)*ze3dwn )/ze3tot 175 zsa = ( zsa*(ze3tot-ze3dwn) + sa(ji,jj,jkdown)*ze3dwn )/ze3tot 175 176 zraua = ( zraua*(ze3tot-ze3dwn) + zrhop(ji,jj,jkdown)*ze3dwn )/ze3tot 176 177 inpci = inpci+1 … … 180 181 ! 181 182 DO jkp = ikup, ikdown-1 182 t n(ji,jj,jkp) = zta183 s n(ji,jj,jkp) = zsa183 ta(ji,jj,jkp) = zta 184 sa(ji,jj,jkp) = zsa 184 185 zrhop(ji,jj,jkp) = zraua 185 186 END DO 186 187 IF (ikdown == ikbot-1 .AND. zraua >= zrhop(ji,jj,ikdown) ) THEN 187 t n(ji,jj,ikdown) = zta188 s n(ji,jj,ikdown) = zsa188 ta(ji,jj,ikdown) = zta 189 sa(ji,jj,ikdown) = zsa 189 190 zrhop(ji,jj,ikdown) = zraua 190 191 ENDIF … … 200 201 ! 201 202 IF( l_trdtra ) THEN ! save the Non penetrative mixing trends for diagnostic 202 ztrdt(:,:,:) = t n(:,:,:) - ztrdt(:,:,:)203 ztrds(:,:,:) = s n(:,:,:) - ztrds(:,:,:)203 ztrdt(:,:,:) = ta(:,:,:) - ztrdt(:,:,:) 204 ztrds(:,:,:) = sa(:,:,:) - ztrds(:,:,:) 204 205 CALL trd_mod(ztrdt, ztrds, jptra_trd_npc, 'TRA', kt) 205 206 ENDIF 206 207 207 ! Lateral boundary conditions on ( t n, sn) ( Unchanged sign)208 ! Lateral boundary conditions on ( ta, sa ) ( Unchanged sign) 208 209 ! ------------------------------============ 209 CALL lbc_lnk( t n, 'T', 1. )210 CALL lbc_lnk( s n, 'T', 1. )210 CALL lbc_lnk( ta, 'T', 1. ) 211 CALL lbc_lnk( sa, 'T', 1. ) 211 212 212 213
Note: See TracChangeset
for help on using the changeset viewer.