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 3875 for branches/2013/dev_r3853_CNRS9_ConfSetting/NEMOGCM/NEMO/LIM_SRC_2/iceini_2.F90 – NEMO

Ignore:
Timestamp:
2013-04-18T16:38:06+02:00 (11 years ago)
Author:
clevy
Message:

Configuration Setting/Step? 1, see ticket:#1074

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2013/dev_r3853_CNRS9_ConfSetting/NEMOGCM/NEMO/LIM_SRC_2/iceini_2.F90

    r3625 r3875  
    7272         &     'use more ocean levels or less ice layers/categories.' ) 
    7373 
    74       !                                ! Open the namelist file  
    75       CALL ctl_opn( numnam_ice, 'namelist_ice', 'OLD', 'FORMATTED', 'SEQUENTIAL', -1, numout, lwp )  
     74      !                                ! Open the reference and configuration namelist files and namelist output file  
     75      CALL ctl_opn( numnam_ice_ref, 'namelist_ice_ref',    'OLD',     'FORMATTED', 'SEQUENTIAL', -1, numout, lwp )  
     76      CALL ctl_opn( numnam_ice_cfg, 'namelist_ice_cfg',    'OLD',     'FORMATTED', 'SEQUENTIAL', -1, numout, lwp ) 
     77      CALL ctl_opn( numoni,         'output.namelist.ice', 'REPLACE', 'FORMATTED', 'SEQUENTIAL', -1, numout, lwp ) 
    7678      !     
    7779      CALL ice_run_2                   ! read in namelist some run parameters 
     
    111113      !!------------------------------------------------------------------- 
    112114      NAMELIST/namicerun/ cn_icerst_in, cn_icerst_out, ln_limdyn, ln_limdmp, acrit, hsndif, hicdif 
     115      INTEGER  ::   ios                 ! Local integer output status for namelist read 
    113116      !!------------------------------------------------------------------- 
    114117      !                     
    115       REWIND( numnam_ice )                      ! Read Namelist namicerun  
    116       READ  ( numnam_ice , namicerun ) 
     118      REWIND( numnam_ice_ref )              ! Namelist namicerun in reference namelist : Parameters for ice 
     119      READ  ( numnam_ice_ref, namicerun, IOSTAT = ios, ERR = 901) 
     120901   IF( ios /= 0 ) CALL ctl_nam ( ios , 'namicerun in reference namelist', lwp ) 
     121 
     122      REWIND( numnam_ice_cfg )              ! Namelist namicerun in configuration namelist : Parameters for ice 
     123      READ  ( numnam_ice_cfg, namicerun, IOSTAT = ios, ERR = 902 ) 
     124902   IF( ios /= 0 ) CALL ctl_nam ( ios , 'namicerun in configuration namelist', lwp ) 
     125      WRITE ( numoni, namicerun ) 
    117126      ! 
    118127      IF(lwp) THEN                              ! control print 
Note: See TracChangeset for help on using the changeset viewer.