- Timestamp:
- 2011-11-09T18:07:32+01:00 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2011/dev_NOC_2011_MERGE/NEMOGCM/NEMO/OPA_SRC/ZDF/zdfbfr.F90
r2715 r3072 36 36 REAL(wp) :: rn_bfrien = 30._wp ! local factor to enhance coefficient bfri 37 37 LOGICAL :: ln_bfr2d = .false. ! logical switch for 2D enhancement 38 39 REAL(wp), ALLOCATABLE, SAVE, DIMENSION(:,:) :: bfrcoef2d ! 2D bottom drag coefficient38 LOGICAL , PUBLIC :: ln_bfrimp = .false. ! logical switch for implicit bottom friction 39 REAL(wp), ALLOCATABLE, SAVE, DIMENSION(:,:) :: bfrcoef2d ! 2D bottom drag coefficient 40 40 41 41 !! * Substitutions … … 142 142 REAL(wp) :: zfru, zfrv ! - - 143 143 !! 144 NAMELIST/nambfr/ nn_bfr, rn_bfri1, rn_bfri2, rn_bfeb2, ln_bfr2d, rn_bfrien 144 NAMELIST/nambfr/ nn_bfr, rn_bfri1, rn_bfri2, rn_bfeb2, ln_bfr2d, rn_bfrien, ln_bfrimp 145 145 !!---------------------------------------------------------------------- 146 146 … … 156 156 ! ! allocate zdfbfr arrays 157 157 IF( zdf_bfr_alloc() /= 0 ) CALL ctl_stop( 'STOP', 'zdf_bfr_init : unable to allocate arrays' ) 158 159 ! ! Make sure ln_zdfexp=.false. when use implicit bfr 160 IF( ln_bfrimp .AND. ln_zdfexp ) THEN 161 IF(lwp) THEN 162 WRITE(numout,*) 163 WRITE(numout,*) 'Implicit bottom friction can only be used when ln_zdfexp=.false.' 164 WRITE(numout,*) ' but you set: ln_bfrimp=.true. and ln_zdfexp=.true.!!!!' 165 WRITE(ctmp1,*) ' bad ln_bfrimp value = .true.' 166 CALL ctl_stop( ctmp1 ) 167 END IF 168 END IF 158 169 159 170 SELECT CASE (nn_bfr) … … 207 218 ! 208 219 END SELECT 220 IF(lwp) WRITE(numout,*) ' implicit bottom friction switch ln_bfrimp = ', ln_bfrimp 209 221 ! 210 222 ! Basic stability check on bottom friction coefficient
Note: See TracChangeset
for help on using the changeset viewer.