Changeset 789 for trunk/NEMO/OPA_SRC/TRA/trazdf.F90
- Timestamp:
- 2008-01-11T19:04:56+01:00 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/NEMO/OPA_SRC/TRA/trazdf.F90
r719 r789 17 17 USE trazdf_exp ! vertical diffusion: explicit (tra_zdf_exp routine) 18 18 USE trazdf_imp ! vertical diffusion: implicit (tra_zdf_imp routine) 19 USE trazdf_imp_jki ! vertical diffusion implicit (tra_zdf_imp_jki routine)20 19 21 20 USE ldftra_oce ! ocean active tracers: lateral physics … … 90 89 CALL prt_ctl( tab3d_1=ta, clinfo1=' zdf1 - Ta: ', mask1=tmask, & 91 90 & tab3d_2=sa, clinfo2= ' Sa: ', mask2=tmask, clinfo3='tra' ) 92 CALL tra_zdf_imp_jki( kt, r2dt )93 CALL prt_ctl( tab3d_1=ta, clinfo1=' zdf2 - Ta: ', mask1=tmask, &94 & tab3d_2=sa, clinfo2= ' Sa: ', mask2=tmask, clinfo3='tra' )95 91 96 92 CASE ( 0 ) ! explicit scheme … … 102 98 ENDIF 103 99 104 CASE ( 1 ) ! implicit scheme (k-j-i loop)100 CASE ( 1 ) ! implicit scheme 105 101 CALL tra_zdf_imp ( kt, r2dt ) 106 IF( l_trdtra ) THEN ! save the vertical diffusive trends for further diagnostics107 DO jk = 1, jpkm1108 ztrdt(:,:,jk) = ( ( ta(:,:,jk) - tb(:,:,jk) ) / r2dt(jk) ) - ztrdt(:,:,jk)109 ztrds(:,:,jk) = ( ( sa(:,:,jk) - sb(:,:,jk) ) / r2dt(jk) ) - ztrds(:,:,jk)110 END DO111 CALL trd_mod( ztrdt, ztrds, jptra_trd_zdf, 'TRA', kt )112 ENDIF113 114 CASE ( 2 ) ! implicit scheme (j-k-i loop)115 CALL tra_zdf_imp_jki( kt, r2dt )116 102 IF( l_trdtra ) THEN ! save the vertical diffusive trends for further diagnostics 117 103 DO jk = 1, jpkm1 … … 137 123 !! ** Purpose : Choose the vertical mixing scheme 138 124 !! 139 !! ** Method : Set nzdf from ln_zdfexp and 'key_mpp_omp'.125 !! ** Method : Set nzdf from ln_zdfexp 140 126 !! nzdf = 0 explicit (time-splitting) scheme (ln_zdfexp=T) 141 127 !! = 1 implicit (euler backward) scheme (ln_zdfexp=F) 142 !! = 2 implicit (euler backward) scheme with j-k-i loops143 !! (ln_zdfexp=T and 'key_mpp_omp')144 128 !! NB: rotation of lateral mixing operator or TKE or KPP scheme, 145 129 !! the implicit scheme is required. … … 169 153 ENDIF 170 154 171 ! NEC autotasking / OpenMP172 #if defined key_mpp_omp173 IF( nzdf == 1 ) nzdf = 2 ! j-k-i loop174 #endif175 176 155 ! Test: esopa 177 156 IF( lk_esopa ) nzdf = -1 ! All schemes used … … 184 163 IF( nzdf == 0 ) WRITE(numout,*) ' Explicit time-splitting scheme' 185 164 IF( nzdf == 1 ) WRITE(numout,*) ' Implicit (euler backward) scheme' 186 IF( nzdf == 2 ) WRITE(numout,*) ' Implicit (euler backward) scheme with j-k-i loops'187 165 ENDIF 188 166
Note: See TracChangeset
for help on using the changeset viewer.