- Timestamp:
- 2016-01-08T10:35:19+01:00 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2014/dev_r4704_NOC5_MPP_BDY_UPDATE/NEMOGCM/NEMO/TOP_SRC/TRP/trcadv.F90
r4610 r6225 4 4 !! Ocean passive tracers: advection trend 5 5 !!============================================================================== 6 !! History : 2.0 ! 05-11 (G. Madec) Original code 7 !! 3.0 ! 10-06 (C. Ethe) Adapted to passive tracers 6 !! History : 2.0 ! 2005-11 (G. Madec) Original code 7 !! 3.0 ! 2010-06 (C. Ethe) Adapted to passive tracers 8 !! 3.7 ! 2014-05 (G. Madec, C. Ethe) Add 2nd/4th order cases for CEN and FCT schemes 8 9 !!---------------------------------------------------------------------- 9 10 #if defined key_top … … 11 12 !! 'key_top' TOP models 12 13 !!---------------------------------------------------------------------- 13 !! trc_adv : compute ocean tracer advection trend 14 !! trc_adv_ctl : control the different options of advection scheme 15 !!---------------------------------------------------------------------- 16 USE oce_trc ! ocean dynamics and active tracers 17 USE trc ! ocean passive tracers variables 18 USE trcnam_trp ! passive tracers transport namelist variables 19 USE traadv_cen2 ! 2nd order centered scheme (tra_adv_cen2 routine) 20 USE traadv_tvd ! TVD scheme (tra_adv_tvd routine) 21 USE traadv_muscl ! MUSCL scheme (tra_adv_muscl routine) 22 USE traadv_muscl2 ! MUSCL2 scheme (tra_adv_muscl2 routine) 23 USE traadv_ubs ! UBS scheme (tra_adv_ubs routine) 24 USE traadv_qck ! QUICKEST scheme (tra_adv_qck routine) 25 USE traadv_eiv ! eddy induced velocity (tra_adv_eiv routine) 26 USE traadv_mle ! ML eddy induced velocity (tra_adv_mle routine) 27 USE ldftra_oce ! lateral diffusion coefficient on tracers 28 USE prtctl_trc ! Print control 14 !! trc_adv : compute ocean tracer advection trend 15 !! trc_adv_ini : control the different options of advection scheme 16 !!---------------------------------------------------------------------- 17 USE oce_trc ! ocean dynamics and active tracers 18 USE trc ! ocean passive tracers variables 19 USE traadv_cen ! centered scheme (tra_adv_cen routine) 20 USE traadv_fct ! FCT scheme (tra_adv_fct routine) 21 USE traadv_mus ! MUSCL scheme (tra_adv_mus routine) 22 USE traadv_ubs ! UBS scheme (tra_adv_ubs routine) 23 USE traadv_qck ! QUICKEST scheme (tra_adv_qck routine) 24 USE traadv_mle ! ML eddy induced velocity (tra_adv_mle routine) 25 USE ldftra ! lateral diffusion coefficient on tracers 26 USE ldfslp ! Lateral diffusion: slopes of neutral surfaces 27 ! 28 USE prtctl_trc ! Print control 29 29 30 30 IMPLICIT NONE 31 31 PRIVATE 32 32 33 PUBLIC trc_adv ! routine called by step module 34 PUBLIC trc_adv_alloc ! routine called by nemogcm module 35 36 INTEGER :: nadv ! choice of the type of advection scheme 37 REAL(wp), ALLOCATABLE, SAVE, DIMENSION(:) :: r2dt ! vertical profile time-step, = 2 rdttra 38 ! ! except at nitrrc000 (=rdttra) if neuler=0 33 PUBLIC trc_adv 34 PUBLIC trc_adv_ini 35 36 ! !!* Namelist namtrc_adv * 37 LOGICAL :: ln_trcadv_cen ! centered scheme flag 38 INTEGER :: nn_cen_h, nn_cen_v ! =2/4 : horizontal and vertical choices of the order of CEN scheme 39 LOGICAL :: ln_trcadv_fct ! FCT scheme flag 40 INTEGER :: nn_fct_h, nn_fct_v ! =2/4 : horizontal and vertical choices of the order of FCT scheme 41 INTEGER :: nn_fct_zts ! >=1 : 2nd order FCT with vertical sub-timestepping 42 LOGICAL :: ln_trcadv_mus ! MUSCL scheme flag 43 LOGICAL :: ln_mus_ups ! use upstream scheme in vivcinity of river mouths 44 LOGICAL :: ln_trcadv_ubs ! UBS scheme flag 45 INTEGER :: nn_ubs_v ! =2/4 : vertical choice of the order of UBS scheme 46 LOGICAL :: ln_trcadv_qck ! QUICKEST scheme flag 47 48 ! ! choices of advection scheme: 49 INTEGER, PARAMETER :: np_NO_adv = 0 ! no T-S advection 50 INTEGER, PARAMETER :: np_CEN = 1 ! 2nd/4th order centered scheme 51 INTEGER, PARAMETER :: np_FCT = 2 ! 2nd/4th order Flux Corrected Transport scheme 52 INTEGER, PARAMETER :: np_FCT_zts = 3 ! 2nd order FCT scheme with vertical sub-timestepping 53 INTEGER, PARAMETER :: np_MUS = 4 ! MUSCL scheme 54 INTEGER, PARAMETER :: np_UBS = 5 ! 3rd order Upstream Biased Scheme 55 INTEGER, PARAMETER :: np_QCK = 6 ! QUICK scheme 56 57 INTEGER :: nadv ! chosen advection scheme 58 ! 59 REAL(wp) :: r2dttrc ! vertical profile time-step, = 2 rdt 60 ! ! except at nitrrc000 (=rdt) if neuler=0 39 61 40 62 !! * Substitutions 41 # include "domzgr_substitute.h90"42 63 # include "vectopt_loop_substitute.h90" 43 64 !!---------------------------------------------------------------------- 44 !! NEMO/TOP 3. 3 , NEMO Consortium (2010)65 !! NEMO/TOP 3.7 , NEMO Consortium (2015) 45 66 !! $Id$ 46 67 !! Software governed by the CeCILL licence (NEMOGCM/NEMO_CeCILL.txt) 47 68 !!---------------------------------------------------------------------- 48 69 CONTAINS 49 50 INTEGER FUNCTION trc_adv_alloc()51 !!----------------------------------------------------------------------52 !! *** ROUTINE trc_adv_alloc ***53 !!----------------------------------------------------------------------54 55 ALLOCATE( r2dt(jpk), STAT=trc_adv_alloc )56 57 IF( trc_adv_alloc /= 0 ) CALL ctl_warn('trc_adv_alloc : failed to allocate array.')58 59 END FUNCTION trc_adv_alloc60 61 70 62 71 SUBROUTINE trc_adv( kt ) … … 68 77 !! ** Method : - Update the tracer with the advection term following nadv 69 78 !!---------------------------------------------------------------------- 70 !!71 79 INTEGER, INTENT(in) :: kt ! ocean time-step index 72 80 ! 73 INTEGER :: jk 81 INTEGER :: jk ! dummy loop index 74 82 CHARACTER (len=22) :: charout 75 83 REAL(wp), POINTER, DIMENSION(:,:,:) :: zun, zvn, zwn ! effective velocity 76 84 !!---------------------------------------------------------------------- 77 85 ! 78 IF( nn_timing == 1 ) CALL timing_start('trc_adv') 79 ! 80 CALL wrk_alloc( jpi, jpj, jpk, zun, zvn, zwn ) 81 ! 82 83 IF( kt == nittrc000 ) CALL trc_adv_ctl ! initialisation & control of options 84 85 IF( ln_top_euler) THEN 86 r2dt(:) = rdttrc(:) ! = rdttrc (use Euler time stepping) 87 ELSE 88 IF( neuler == 0 .AND. kt == nittrc000 ) THEN ! at nittrc000 89 r2dt(:) = rdttrc(:) ! = rdttrc (restarting with Euler time stepping) 90 ELSEIF( kt <= nittrc000 + 1 ) THEN ! at nittrc000 or nittrc000+1 91 r2dt(:) = 2. * rdttrc(:) ! = 2 rdttrc (leapfrog) 92 ENDIF 93 ENDIF 94 95 ! ! effective transport 86 IF( nn_timing == 1 ) CALL timing_start('trc_adv') 87 ! 88 CALL wrk_alloc( jpi,jpj,jpk, zun, zvn, zwn ) 89 ! 90 IF( ( neuler == 0 .AND. kt == nittrc000 ) .OR. ln_top_euler ) THEN ! at nittrc000 91 r2dttrc = rdttrc ! = rdttrc (use or restarting with Euler time stepping) 92 ELSEIF( kt <= nittrc000 + nn_dttrc ) THEN ! at nittrc000 or nittrc000+1 93 r2dttrc = 2. * rdttrc ! = 2 rdttrc (leapfrog) 94 ENDIF 95 ! !== effective transport ==! 96 96 DO jk = 1, jpkm1 97 ! ! eulerian transport only 98 zun(:,:,jk) = e2u (:,:) * fse3u(:,:,jk) * un(:,:,jk) 99 zvn(:,:,jk) = e1v (:,:) * fse3v(:,:,jk) * vn(:,:,jk) 97 zun(:,:,jk) = e2u (:,:) * e3u_n(:,:,jk) * un(:,:,jk) ! eulerian transport 98 zvn(:,:,jk) = e1v (:,:) * e3v_n(:,:,jk) * vn(:,:,jk) 100 99 zwn(:,:,jk) = e1e2t(:,:) * wn(:,:,jk) 101 !102 100 END DO 103 101 ! 104 IF( ln_vvl_ztilde .OR. ln_vvl_layer ) THEN 102 IF( ln_vvl_ztilde .OR. ln_vvl_layer ) THEN ! add z-tilde and/or vvl corrections 105 103 zun(:,:,:) = zun(:,:,:) + un_td(:,:,:) 106 104 zvn(:,:,:) = zvn(:,:,:) + vn_td(:,:,:) 107 105 ENDIF 108 106 ! 109 zun(:,:,jpk) = 0._wp ! no transport trough the bottom 110 zvn(:,:,jpk) = 0._wp ! no transport trough the bottom 111 zwn(:,:,jpk) = 0._wp ! no transport trough the bottom 112 113 IF( lk_traldf_eiv .AND. .NOT. ln_traldf_grif ) & ! add the eiv transport (if necessary) 114 & CALL tra_adv_eiv( kt, nittrc000, zun, zvn, zwn, 'TRC' ) 115 ! 116 IF( ln_mle ) CALL tra_adv_mle( kt, nittrc000, zun, zvn, zwn, 'TRC' ) ! add the mle transport (if necessary) 117 ! 118 SELECT CASE ( nadv ) !== compute advection trend and add it to general trend ==! 119 CASE ( 1 ) ; CALL tra_adv_cen2 ( kt, nittrc000, 'TRC', zun, zvn, zwn, trb, trn, tra, jptra ) ! 2nd order centered 120 CASE ( 2 ) ; CALL tra_adv_tvd ( kt, nittrc000, 'TRC', r2dt, zun, zvn, zwn, trb, trn, tra, jptra ) ! TVD 121 CASE ( 3 ) ; CALL tra_adv_muscl ( kt, nittrc000, 'TRC', r2dt, zun, zvn, zwn, trb, tra, jptra, ln_trcadv_msc_ups ) ! MUSCL 122 CASE ( 4 ) ; CALL tra_adv_muscl2( kt, nittrc000, 'TRC', r2dt, zun, zvn, zwn, trb, trn, tra, jptra ) ! MUSCL2 123 CASE ( 5 ) ; CALL tra_adv_ubs ( kt, nittrc000, 'TRC', r2dt, zun, zvn, zwn, trb, trn, tra, jptra ) ! UBS 124 CASE ( 6 ) ; CALL tra_adv_qck ( kt, nittrc000, 'TRC', r2dt, zun, zvn, zwn, trb, trn, tra, jptra ) ! QUICKEST 125 ! 126 CASE (-1 ) !== esopa: test all possibility with control print ==! 127 CALL tra_adv_cen2 ( kt, nittrc000, 'TRC', zun, zvn, zwn, trb, trn, tra, jptra ) 128 WRITE(charout, FMT="('adv1')") ; CALL prt_ctl_trc_info(charout) 129 CALL prt_ctl_trc(tab4d=tra, mask=tmask, clinfo=ctrcnm,clinfo2='trd') 130 CALL tra_adv_tvd ( kt, nittrc000, 'TRC', r2dt, zun, zvn, zwn, trb, trn, tra, jptra ) 131 WRITE(charout, FMT="('adv2')") ; CALL prt_ctl_trc_info(charout) 132 CALL prt_ctl_trc(tab4d=tra, mask=tmask, clinfo=ctrcnm,clinfo2='trd') 133 CALL tra_adv_muscl ( kt, nittrc000, 'TRC', r2dt, zun, zvn, zwn, trb, tra, jptra, ln_trcadv_msc_ups ) 134 WRITE(charout, FMT="('adv3')") ; CALL prt_ctl_trc_info(charout) 135 CALL prt_ctl_trc(tab4d=tra, mask=tmask, clinfo=ctrcnm,clinfo2='trd') 136 CALL tra_adv_muscl2( kt, nittrc000, 'TRC', r2dt, zun, zvn, zwn, trb, trn, tra, jptra ) 137 WRITE(charout, FMT="('adv4')") ; CALL prt_ctl_trc_info(charout) 138 CALL prt_ctl_trc(tab4d=tra, mask=tmask, clinfo=ctrcnm,clinfo2='trd') 139 CALL tra_adv_ubs ( kt, nittrc000, 'TRC', r2dt, zun, zvn, zwn, trb, trn, tra, jptra ) 140 WRITE(charout, FMT="('adv5')") ; CALL prt_ctl_trc_info(charout) 141 CALL prt_ctl_trc(tab4d=tra, mask=tmask, clinfo=ctrcnm,clinfo2='trd') 142 CALL tra_adv_qck ( kt, nittrc000, 'TRC', r2dt, zun, zvn, zwn, trb, trn, tra, jptra ) 143 WRITE(charout, FMT="('adv6')") ; CALL prt_ctl_trc_info(charout) 144 CALL prt_ctl_trc(tab4d=tra, mask=tmask, clinfo=ctrcnm,clinfo2='trd') 145 ! 107 IF( ln_ldfeiv .AND. .NOT. ln_traldf_triad ) & 108 & CALL ldf_eiv_trp( kt, nittrc000, zun, zvn, zwn, 'TRC' ) ! add the eiv transport 109 ! 110 IF( ln_mle ) CALL tra_adv_mle( kt, nittrc000, zun, zvn, zwn, 'TRC' ) ! add the mle transport 111 ! 112 zun(:,:,jpk) = 0._wp ! no transport trough the bottom 113 zvn(:,:,jpk) = 0._wp 114 zwn(:,:,jpk) = 0._wp 115 ! 116 ! 117 SELECT CASE ( nadv ) !== compute advection trend and add it to general trend ==! 118 ! 119 CASE ( np_CEN ) ! Centered : 2nd / 4th order 120 CALL tra_adv_cen ( kt, nittrc000,'TRC', zun, zvn, zwn , trn, tra, jptra, nn_cen_h, nn_cen_v ) 121 CASE ( np_FCT ) ! FCT : 2nd / 4th order 122 CALL tra_adv_fct ( kt, nittrc000,'TRC', r2dttrc, zun, zvn, zwn, trb, trn, tra, jptra, nn_fct_h, nn_fct_v ) 123 CASE ( np_FCT_zts ) ! 2nd order FCT with vertical time-splitting 124 CALL tra_adv_fct_zts( kt, nittrc000,'TRC', r2dttrc, zun, zvn, zwn, trb, trn, tra, jptra , nn_fct_zts ) 125 CASE ( np_MUS ) ! MUSCL 126 CALL tra_adv_mus ( kt, nittrc000,'TRC', r2dttrc, zun, zvn, zwn, trb, tra, jptra , ln_mus_ups ) 127 CASE ( np_UBS ) ! UBS 128 CALL tra_adv_ubs ( kt, nittrc000,'TRC', r2dttrc, zun, zvn, zwn, trb, trn, tra, jptra , nn_ubs_v ) 129 CASE ( np_QCK ) ! QUICKEST 130 CALL tra_adv_qck ( kt, nittrc000,'TRC', r2dttrc, zun, zvn, zwn, trb, trn, tra, jptra ) 131 ! 146 132 END SELECT 147 148 ! ! print mean trends (used for debugging) 149 IF( ln_ctl ) THEN 133 ! 134 IF( ln_ctl ) THEN !== print mean trends (used for debugging) 150 135 WRITE(charout, FMT="('adv ')") ; CALL prt_ctl_trc_info(charout) 151 136 CALL prt_ctl_trc( tab4d=tra, mask=tmask, clinfo=ctrcnm, clinfo2='trd' ) 152 137 END IF 153 138 ! 154 CALL wrk_dealloc( jpi, jpj, jpk,zun, zvn, zwn )139 CALL wrk_dealloc( jpi,jpj,jpk, zun, zvn, zwn ) 155 140 ! 156 141 IF( nn_timing == 1 ) CALL timing_stop('trc_adv') … … 159 144 160 145 161 SUBROUTINE trc_adv_ ctl146 SUBROUTINE trc_adv_ini 162 147 !!--------------------------------------------------------------------- 163 !! *** ROUTINE trc_adv_ ctl***148 !! *** ROUTINE trc_adv_ini *** 164 149 !! 165 150 !! ** Purpose : Control the consistency between namelist options for … … 167 152 !!---------------------------------------------------------------------- 168 153 INTEGER :: ioptio 169 !!---------------------------------------------------------------------- 170 171 ioptio = 0 ! Parameter control 172 IF( ln_trcadv_cen2 ) ioptio = ioptio + 1 173 IF( ln_trcadv_tvd ) ioptio = ioptio + 1 174 IF( ln_trcadv_muscl ) ioptio = ioptio + 1 175 IF( ln_trcadv_muscl2 ) ioptio = ioptio + 1 176 IF( ln_trcadv_ubs ) ioptio = ioptio + 1 177 IF( ln_trcadv_qck ) ioptio = ioptio + 1 178 IF( lk_esopa ) ioptio = 1 179 154 INTEGER :: ios ! Local integer output status for namelist read 155 !! 156 NAMELIST/namtrc_adv/ ln_trcadv_cen, nn_cen_h, nn_cen_v, & ! CEN 157 & ln_trcadv_fct, nn_fct_h, nn_fct_v, nn_fct_zts, & ! FCT 158 & ln_trcadv_mus, ln_mus_ups, & ! MUSCL 159 & ln_trcadv_ubs, nn_ubs_v, & ! UBS 160 & ln_trcadv_qck ! QCK 161 !!---------------------------------------------------------------------- 162 ! 163 REWIND( numnat_ref ) ! namtrc_adv in reference namelist 164 READ ( numnat_ref, namtrc_adv, IOSTAT = ios, ERR = 901) 165 901 IF( ios /= 0 ) CALL ctl_nam ( ios , 'namtrc_adv in reference namelist', lwp ) 166 167 REWIND( numnat_cfg ) ! namtrc_adv in configuration namelist 168 READ ( numnat_cfg, namtrc_adv, IOSTAT = ios, ERR = 902 ) 169 902 IF( ios /= 0 ) CALL ctl_nam ( ios , 'namtrc_adv in configuration namelist', lwp ) 170 IF(lwm) WRITE ( numont, namtrc_adv ) 171 172 IF(lwp) THEN ! Namelist print 173 WRITE(numout,*) 174 WRITE(numout,*) 'trc_adv_ini : choice/control of the tracer advection scheme' 175 WRITE(numout,*) '~~~~~~~~~~~' 176 WRITE(numout,*) ' Namelist namtrc_adv : chose a advection scheme for tracers' 177 WRITE(numout,*) ' centered scheme ln_trcadv_cen = ', ln_trcadv_cen 178 WRITE(numout,*) ' horizontal 2nd/4th order nn_cen_h = ', nn_fct_h 179 WRITE(numout,*) ' vertical 2nd/4th order nn_cen_v = ', nn_fct_v 180 WRITE(numout,*) ' Flux Corrected Transport scheme ln_trcadv_fct = ', ln_trcadv_fct 181 WRITE(numout,*) ' horizontal 2nd/4th order nn_fct_h = ', nn_fct_h 182 WRITE(numout,*) ' vertical 2nd/4th order nn_fct_v = ', nn_fct_v 183 WRITE(numout,*) ' 2nd order + vertical sub-timestepping nn_fct_zts = ', nn_fct_zts 184 WRITE(numout,*) ' MUSCL scheme ln_trcadv_mus = ', ln_trcadv_mus 185 WRITE(numout,*) ' + upstream scheme near river mouths ln_mus_ups = ', ln_mus_ups 186 WRITE(numout,*) ' UBS scheme ln_trcadv_ubs = ', ln_trcadv_ubs 187 WRITE(numout,*) ' vertical 2nd/4th order nn_ubs_v = ', nn_ubs_v 188 WRITE(numout,*) ' QUICKEST scheme ln_trcadv_qck = ', ln_trcadv_qck 189 ENDIF 190 ! 191 192 ioptio = 0 !== Parameter control ==! 193 IF( ln_trcadv_cen ) ioptio = ioptio + 1 194 IF( ln_trcadv_fct ) ioptio = ioptio + 1 195 IF( ln_trcadv_mus ) ioptio = ioptio + 1 196 IF( ln_trcadv_ubs ) ioptio = ioptio + 1 197 IF( ln_trcadv_qck ) ioptio = ioptio + 1 198 199 ! 200 IF( ioptio == 0 ) THEN 201 nadv = np_NO_adv 202 CALL ctl_warn( 'trc_adv_init: You are running without tracer advection.' ) 203 ENDIF 180 204 IF( ioptio /= 1 ) CALL ctl_stop( 'Choose ONE advection scheme in namelist namtrc_adv' ) 181 182 ! ! Set nadv 183 IF( ln_trcadv_cen2 ) nadv = 1 184 IF( ln_trcadv_tvd ) nadv = 2 185 IF( ln_trcadv_muscl ) nadv = 3 186 IF( ln_trcadv_muscl2 ) nadv = 4 187 IF( ln_trcadv_ubs ) nadv = 5 188 IF( ln_trcadv_qck ) nadv = 6 189 IF( lk_esopa ) nadv = -1 190 205 ! 206 IF( ln_trcadv_cen .AND. ( nn_cen_h /= 2 .AND. nn_cen_h /= 4 ) & 207 .AND. ( nn_cen_v /= 2 .AND. nn_cen_v /= 4 ) ) THEN 208 CALL ctl_stop( 'trc_adv_init: CEN scheme, choose 2nd or 4th order' ) 209 ENDIF 210 IF( ln_trcadv_fct .AND. ( nn_fct_h /= 2 .AND. nn_fct_h /= 4 ) & 211 .AND. ( nn_fct_v /= 2 .AND. nn_fct_v /= 4 ) ) THEN 212 CALL ctl_stop( 'trc_adv_init: FCT scheme, choose 2nd or 4th order' ) 213 ENDIF 214 IF( ln_trcadv_fct .AND. nn_fct_zts > 0 ) THEN 215 IF( nn_fct_h == 4 ) THEN 216 nn_fct_h = 2 217 CALL ctl_stop( 'trc_adv_init: force 2nd order FCT scheme, 4th order does not exist with sub-timestepping' ) 218 ENDIF 219 IF( .NOT.ln_linssh ) THEN 220 CALL ctl_stop( 'trc_adv_init: vertical sub-timestepping not allow in non-linear free surface' ) 221 ENDIF 222 IF( nn_fct_zts == 1 ) CALL ctl_warn( 'trc_adv_init: FCT with ONE sub-timestep = FCT without sub-timestep' ) 223 ENDIF 224 IF( ln_trcadv_ubs .AND. ( nn_ubs_v /= 2 .AND. nn_ubs_v /= 4 ) ) THEN 225 CALL ctl_stop( 'trc_adv_init: UBS scheme, choose 2nd or 4th order' ) 226 ENDIF 227 IF( ln_trcadv_ubs .AND. nn_ubs_v == 4 ) THEN 228 CALL ctl_warn( 'trc_adv_init: UBS scheme, only 2nd FCT scheme available on the vertical. It will be used' ) 229 ENDIF 230 IF( ln_isfcav ) THEN ! ice-shelf cavities 231 IF( ln_trcadv_cen .AND. nn_cen_v /= 4 .OR. & ! NO 4th order with ISF 232 & ln_trcadv_fct .AND. nn_fct_v /= 4 ) CALL ctl_stop( 'tra_adv_init: 4th order COMPACT scheme not allowed with ISF' ) 233 ENDIF 234 ! 235 ! !== used advection scheme ==! 236 ! ! set nadv 237 IF( ln_trcadv_cen ) nadv = np_CEN 238 IF( ln_trcadv_fct ) nadv = np_FCT 239 IF( ln_trcadv_fct .AND. nn_fct_zts > 0 ) nadv = np_FCT_zts 240 IF( ln_trcadv_mus ) nadv = np_MUS 241 IF( ln_trcadv_ubs ) nadv = np_UBS 242 IF( ln_trcadv_qck ) nadv = np_QCK 243 ! 191 244 IF(lwp) THEN ! Print the choice 192 245 WRITE(numout,*) 193 IF( nadv == 1 ) WRITE(numout,*) ' 2nd order scheme is used' 194 IF( nadv == 2 ) WRITE(numout,*) ' TVD scheme is used' 195 IF( nadv == 3 ) WRITE(numout,*) ' MUSCL scheme is used' 196 IF( nadv == 4 ) WRITE(numout,*) ' MUSCL2 scheme is used' 197 IF( nadv == 5 ) WRITE(numout,*) ' UBS scheme is used' 198 IF( nadv == 6 ) WRITE(numout,*) ' QUICKEST scheme is used' 199 IF( nadv == -1 ) WRITE(numout,*) ' esopa test: use all advection scheme' 200 ENDIF 201 ! 202 END SUBROUTINE trc_adv_ctl 246 IF( nadv == np_NO_adv ) WRITE(numout,*) ' NO passive tracer advection' 247 IF( nadv == np_CEN ) WRITE(numout,*) ' CEN scheme is used. Horizontal order: ', nn_cen_h, & 248 & ' Vertical order: ', nn_cen_v 249 IF( nadv == np_FCT ) WRITE(numout,*) ' FCT scheme is used. Horizontal order: ', nn_fct_h, & 250 & ' Vertical order: ', nn_fct_v 251 IF( nadv == np_FCT_zts ) WRITE(numout,*) ' use 2nd order FCT with ', nn_fct_zts,'vertical sub-timestepping' 252 IF( nadv == np_MUS ) WRITE(numout,*) ' MUSCL scheme is used' 253 IF( nadv == np_UBS ) WRITE(numout,*) ' UBS scheme is used' 254 IF( nadv == np_QCK ) WRITE(numout,*) ' QUICKEST scheme is used' 255 ENDIF 256 ! 257 END SUBROUTINE trc_adv_ini 203 258 204 259 #else
Note: See TracChangeset
for help on using the changeset viewer.