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 4624 for trunk/NEMOGCM/NEMO/TOP_SRC/trcnam.F90 – NEMO

Ignore:
Timestamp:
2014-04-28T14:09:03+02:00 (10 years ago)
Author:
acc
Message:

#1305. Fix slow start-up problems on some systems by introducing and using lwm logical to restrict output of merged namelists to the first (or only) processor. lwm is true only on the first processor regardless of ln_ctl. Small changes to all flavours of nemogcm.F90 are also required to write namctl and namcfg after the call to mynode which now opens output.namelist.dyn and writes nammpp.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/NEMOGCM/NEMO/TOP_SRC/trcnam.F90

    r4319 r4624  
    128128         READ  ( numnat_cfg, namtrc_trd, IOSTAT = ios, ERR = 906 ) 
    129129906      IF( ios /= 0 ) CALL ctl_nam ( ios , 'namtrc_trd in configuration namelist', lwp ) 
    130          WRITE ( numont, namtrc_trd ) 
     130         IF(lwm) WRITE ( numont, namtrc_trd ) 
    131131 
    132132         IF(lwp) THEN 
     
    187187      CALL ctl_opn( numnat_ref, 'namelist_top_ref'   , 'OLD'    , 'FORMATTED', 'SEQUENTIAL', -1, numout, .FALSE. ) 
    188188      CALL ctl_opn( numnat_cfg, 'namelist_top_cfg'   , 'OLD'    , 'FORMATTED', 'SEQUENTIAL', -1, numout, .FALSE. ) 
    189       CALL ctl_opn( numont    , 'output.namelist.top', 'UNKNOWN', 'FORMATTED', 'SEQUENTIAL', -1, numout, .FALSE., 1 ) 
     189      IF(lwm) CALL ctl_opn( numont, 'output.namelist.top', 'UNKNOWN', 'FORMATTED', 'SEQUENTIAL', -1, numout, .FALSE., 1 ) 
    190190 
    191191      REWIND( numnat_ref )              ! Namelist namtrc in reference namelist : Passive tracer variables 
     
    196196      READ  ( numnat_cfg, namtrc_run, IOSTAT = ios, ERR = 902 ) 
    197197902   IF( ios /= 0 ) CALL ctl_nam ( ios , 'namtrc in configuration namelist', lwp ) 
    198       WRITE ( numont, namtrc_run ) 
     198      IF(lwm) WRITE ( numont, namtrc_run ) 
    199199 
    200200      !  computes the first time step of tracer model 
     
    242242      READ  ( numnat_cfg, namtrc, IOSTAT = ios, ERR = 902 ) 
    243243902   IF( ios /= 0 ) CALL ctl_nam ( ios , 'namtrc in configuration namelist', lwp ) 
    244       WRITE ( numont, namtrc ) 
     244      IF(lwm) WRITE ( numont, namtrc ) 
    245245 
    246246      DO jn = 1, jptra 
     
    291291      READ  ( numnat_cfg, namtrc_dia, IOSTAT = ios, ERR = 904 ) 
    292292904   IF( ios /= 0 ) CALL ctl_nam ( ios , 'namtrc_dia in configuration namelist', lwp ) 
    293       WRITE ( numont, namtrc_dia ) 
     293      IF(lwm) WRITE ( numont, namtrc_dia ) 
    294294 
    295295      IF(lwp) THEN 
Note: See TracChangeset for help on using the changeset viewer.