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/TOP_SRC/PISCES/trcnam_pisces.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/TOP_SRC/PISCES/trcnam_pisces.F90

    r3680 r3875  
    4949      !! 
    5050      INTEGER :: jl, jn 
     51      INTEGER :: ios                 ! Local integer output status for namelist read 
    5152      TYPE(DIAG), DIMENSION(jp_pisces_2d)  :: pisdia2d 
    5253      TYPE(DIAG), DIMENSION(jp_pisces_3d)  :: pisdia3d 
     
    6970#endif 
    7071      IF(lwp) WRITE(numout,*) ' ~~~~~~~~~~~~~~' 
    71       CALL ctl_opn( numnatp, TRIM( clname ), 'OLD', 'FORMATTED', 'SEQUENTIAL', -1, numout, .FALSE. ) 
    72  
     72      CALL ctl_opn( numnatp_ref, TRIM( clname )//'_ref', 'OLD'    , 'FORMATTED', 'SEQUENTIAL', -1, numout, .FALSE. ) 
     73      CALL ctl_opn( numnatp_cfg, TRIM( clname )//'_cfg', 'OLD'    , 'FORMATTED', 'SEQUENTIAL', -1, numout, .FALSE. ) 
     74      CALL ctl_opn( numonp     , 'output.namelist.pis' , 'REPLACE', 'FORMATTED', 'SEQUENTIAL', -1, numout, .FALSE. ) 
    7375      ! 
    7476      IF( .NOT.lk_iomput .AND. ln_diatrc ) THEN 
     
    8890         END DO 
    8991 
    90          REWIND( numnatp )               !  
    91          READ  ( numnatp, nampisdia ) 
     92         REWIND( numnatp_ref )              ! Namelist nampisdia in reference namelist : Pisces diagnostics 
     93         READ  ( numnatp_ref, nampisdia, IOSTAT = ios, ERR = 901) 
     94901      IF( ios /= 0 ) CALL ctl_nam ( ios , 'nampisdia in reference namelist', lwp ) 
     95 
     96         REWIND( numnatp_cfg )              ! Namelist nampisdia in configuration namelist : Pisces diagnostics 
     97         READ  ( numnatp_cfg, nampisdia, IOSTAT = ios, ERR = 902 ) 
     98902      IF( ios /= 0 ) CALL ctl_nam ( ios , 'nampisdia in configuration namelist', lwp ) 
     99         WRITE ( numonp, nampisdia ) 
    92100 
    93101         DO jl = 1, jp_pisces_2d 
     
    140148         END DO 
    141149 
    142          REWIND( numnatp ) 
    143          READ  ( numnatp, nampisdbi ) 
     150         REWIND( numnatp_ref )              ! Namelist nampisdbi in reference namelist : Pisces add. diagnostics 
     151         READ  ( numnatp_ref, nampisdbi, IOSTAT = ios, ERR = 903) 
     152903      IF( ios /= 0 ) CALL ctl_nam ( ios , 'nampisdbi in reference namelist', lwp ) 
     153 
     154         REWIND( numnatp_cfg )              ! Namelist nampisdbi in configuration namelist : Pisces add. diagnostics 
     155         READ  ( numnatp_cfg, nampisdbi, IOSTAT = ios, ERR = 904 ) 
     156904      IF( ios /= 0 ) CALL ctl_nam ( ios , 'nampisdbi in configuration namelist', lwp ) 
     157         WRITE ( numonp, nampisdbi ) 
    144158 
    145159         DO jl = 1, jp_pisces_trd 
Note: See TracChangeset for help on using the changeset viewer.