Changeset 1601 for trunk/NEMO/OPA_SRC/TRA/traqsr.F90
- Timestamp:
- 2009-08-11T12:09:19+02:00 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/NEMO/OPA_SRC/TRA/traqsr.F90
r1460 r1601 33 33 PUBLIC tra_qsr ! routine called by step.F90 (ln_traqsr=T) 34 34 35 ! !!* Namelist nam qsr: penetrative solar radiation35 ! !!* Namelist namtra_qsr: penetrative solar radiation 36 36 LOGICAL , PUBLIC :: ln_traqsr = .TRUE. !: light absorption (qsr) flag 37 37 LOGICAL , PUBLIC :: ln_qsr_rgb = .FALSE. !: Red-Green-Blue light absorption flag … … 220 220 !! ** Method : The profile of solar radiation within the ocean is set 221 221 !! from two length scale of penetration (rn_si0,rn_si1) and a ratio 222 !! (rn_abs). These parameters are read in the nam qsr namelist. The222 !! (rn_abs). These parameters are read in the namtra_qsr namelist. The 223 223 !! default values correspond to clear water (type I in Jerlov' 224 224 !! (1968) classification. … … 240 240 CHARACTER(len=100) :: cn_dir ! Root directory for location of ssr files 241 241 TYPE(FLD_N) :: sn_chl ! informations about the chlorofyl field to be read 242 NAMELIST/nam qsr/ sn_chl, cn_dir, ln_traqsr, ln_qsr_rgb, ln_qsr_2bd, ln_qsr_bio, &243 & nn_chldta, rn_abs, rn_si0, rn_si1, rn_si2242 NAMELIST/namtra_qsr/ sn_chl, cn_dir, ln_traqsr, ln_qsr_rgb, ln_qsr_2bd, ln_qsr_bio, & 243 & nn_chldta, rn_abs, rn_si0, rn_si1, rn_si2 244 244 !!---------------------------------------------------------------------- 245 245 … … 250 250 sn_chl = FLD_N( 'chlorophyll' , -1 , 'CHLA' , .true. , .true. , 'yearly' , '' , '' ) 251 251 ! 252 REWIND( numnam ) ! Read Namelist nam qsr : ratio and length of penetration253 READ ( numnam, nam qsr )252 REWIND( numnam ) ! Read Namelist namtra_qsr : ratio and length of penetration 253 READ ( numnam, namtra_qsr ) 254 254 ! 255 255 IF(lwp) THEN ! control print … … 257 257 WRITE(numout,*) 'tra_qsr_init : penetration of the surface solar radiation' 258 258 WRITE(numout,*) '~~~~~~~~~~~~' 259 WRITE(numout,*) ' Namelist namqsr : set the parameter of penetration'260 WRITE(numout,*) ' 261 WRITE(numout,*) ' 262 WRITE(numout,*) ' 263 WRITE(numout,*) ' 264 WRITE(numout,*) ' 265 WRITE(numout,*) ' 266 WRITE(numout,*) ' 267 WRITE(numout,*) ' 268 WRITE(numout,*) ' 259 WRITE(numout,*) ' Namelist namtra_qsr : set the parameter of penetration' 260 WRITE(numout,*) ' Light penetration (T) or not (F) ln_traqsr = ', ln_traqsr 261 WRITE(numout,*) ' RGB (Red-Green-Blue) light penetration ln_qsr_rgb = ', ln_qsr_rgb 262 WRITE(numout,*) ' 2 band light penetration ln_qsr_2bd = ', ln_qsr_2bd 263 WRITE(numout,*) ' bio-model light penetration ln_qsr_bio = ', ln_qsr_bio 264 WRITE(numout,*) ' RGB : Chl data (=1) or cst value (=0) nn_chldta = ', nn_chldta 265 WRITE(numout,*) ' RGB & 2 bands: fraction of light (rn_si1) rn_abs = ', rn_abs 266 WRITE(numout,*) ' RGB & 2 bands: shortess depth of extinction rn_si0 = ', rn_si0 267 WRITE(numout,*) ' 2 bands: longest depth of extinction rn_si1 = ', rn_si1 268 WRITE(numout,*) ' 3 bands: longest depth of extinction rn_si2 = ', rn_si2 269 269 ENDIF 270 270 271 271 IF( ln_traqsr ) THEN ! control consistency 272 272 ! 273 IF( .NOT. lk_qsr_bio ) THEN 273 IF( .NOT.lk_qsr_bio .AND. ln_qsr_bio ) THEN 274 CALL ctl_warn( 'No bio model : force ln_qsr_bio = FALSE ' ) 274 275 ln_qsr_bio = .FALSE. 275 CALL ctl_warn( 'No bio model ; force bio-model light penetration ln_qsr_bio = FALSE ' )276 276 ENDIF 277 277 ! … … 286 286 ln_qsr_2bd = .FALSE. 287 287 ln_qsr_bio = .FALSE. 288 CALL ctl_warn( ' Choose ONE type of light penetration in namelist nam qsr', &288 CALL ctl_warn( ' Choose ONE type of light penetration in namelist namtra_qsr', & 289 289 & ' otherwise, we force the model to run with RGB light penetration' ) 290 290 ENDIF … … 335 335 ! ! fill sf_chl with sn_chl and control print 336 336 CALL fld_fill( sf_chl, (/ sn_chl /), cn_dir, 'tra_qsr_init', & 337 & 'Solar penetration function of read chlorophyll', 'nam qsr' )337 & 'Solar penetration function of read chlorophyll', 'namtra_qsr' ) 338 338 ! 339 339 ELSE !* constant Chl : compute once for all the distribution of light (etot3)
Note: See TracChangeset
for help on using the changeset viewer.