- Timestamp:
- 2013-11-04T12:51:55+01:00 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2013/dev_LOCEAN_2013/NEMOGCM/NEMO/OPA_SRC/ICB/icbini.F90
r3785 r4147 35 35 PUBLIC icb_init ! routine called in nemogcm.F90 module 36 36 37 CHARACTER(len=100) :: cn_dir = './'! Root directory for location of icb files37 CHARACTER(len=100) :: cn_dir ! Root directory for location of icb files 38 38 TYPE(FLD_N) :: sn_icb ! information about the calving file to be read 39 39 … … 344 344 !!---------------------------------------------------------------------- 345 345 INTEGER :: jn ! dummy loop indices 346 INTEGER :: ios ! Local integer output status for namelist read 346 347 REAL(wp) :: zfact ! local scalar 347 348 ! … … 354 355 !!---------------------------------------------------------------------- 355 356 356 ! (NB: frequency positive => hours, negative => months) 357 ! ! file ! frequency ! variable ! time intep ! clim ! 'yearly' or ! weights ! rotation ! 358 ! ! name ! (hours) ! name ! (T/F) ! (T/F) ! 'monthly' ! filename ! pairs ! 359 sn_icb = FLD_N( 'calving' , -1 , 'calving' , .TRUE. , .TRUE. , 'yearly' , '' , '' ) 360 361 REWIND( numnam ) ! Namelist namrun : iceberg parameters 362 READ ( numnam, namberg ) 363 357 #if !defined key_agrif 358 REWIND( numnam_ref ) ! Namelist namberg in reference namelist : Iceberg parameters 359 READ ( numnam_ref, namberg, IOSTAT = ios, ERR = 901) 360 901 IF( ios /= 0 ) CALL ctl_nam ( ios , 'namberg in reference namelist', lwp ) 361 REWIND( numnam_cfg ) ! Namelist namberg in configuration namelist : Iceberg parameters 362 READ ( numnam_cfg, namberg, IOSTAT = ios, ERR = 902 ) 363 902 IF( ios /= 0 ) CALL ctl_nam ( ios , 'namberg in configuration namelist', lwp ) 364 WRITE ( numond, namberg ) 365 #else 366 IF(lwp) THEN 367 WRITE(numout,*) 368 WRITE(numout,*) 'icbini : AGRIF is not compatible with namelist namberg : ' 369 WRITE(numout,*) ' definition of rn_initial_mass(nclasses) with nclasses as PARAMETER ' 370 WRITE(numout,*) ' namelist namberg not read' 371 ENDIF 372 ln_icebergs = .false. 373 #endif 364 374 IF( .NOT. ln_icebergs ) THEN ! no icebergs 365 375 IF(lwp) THEN 366 376 WRITE(numout,*) 367 WRITE(numout,*) 'icb _nam :ln_icebergs = F , NO icebergs used'377 WRITE(numout,*) 'icbini : Namelist namberg ln_icebergs = F , NO icebergs used' 368 378 WRITE(numout,*) '~~~~~~~~ ' 369 379 ENDIF
Note: See TracChangeset
for help on using the changeset viewer.