New URL for NEMO forge!   http://forge.nemo-ocean.eu

Since March 2022 along with NEMO 4.2 release, the code development moved to a self-hosted GitLab.
This present forge is now archived and remained online for history.
Changeset 4147 for branches/2013/dev_LOCEAN_2013/NEMOGCM/NEMO/OPA_SRC/ICB/icbini.F90 – NEMO

Ignore:
Timestamp:
2013-11-04T12:51:55+01:00 (11 years ago)
Author:
cetlod
Message:

merge in dev_LOCEAN_2013, the 1st development branch dev_r3853_CNRS9_Confsetting, from its starting point ( r3853 ) on the trunk: see ticket #1169

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2013/dev_LOCEAN_2013/NEMOGCM/NEMO/OPA_SRC/ICB/icbini.F90

    r3785 r4147  
    3535   PUBLIC   icb_init  ! routine called in nemogcm.F90 module 
    3636 
    37    CHARACTER(len=100) ::   cn_dir = './'   ! Root directory for location of icb files 
     37   CHARACTER(len=100) ::   cn_dir          ! Root directory for location of icb files 
    3838   TYPE(FLD_N)        ::   sn_icb          ! information about the calving file to be read 
    3939 
     
    344344      !!---------------------------------------------------------------------- 
    345345      INTEGER  ::   jn      ! dummy loop indices 
     346      INTEGER  ::   ios     ! Local integer output status for namelist read 
    346347      REAL(wp) ::   zfact   ! local scalar 
    347348      ! 
     
    354355      !!---------------------------------------------------------------------- 
    355356 
    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) 
     360901   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 ) 
     363902   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    
    364374      IF( .NOT. ln_icebergs ) THEN   ! no icebergs 
    365375         IF(lwp) THEN 
    366376            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' 
    368378            WRITE(numout,*) '~~~~~~~~ ' 
    369379         ENDIF 
Note: See TracChangeset for help on using the changeset viewer.