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/TRP/trcnam_trp.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/TRP/trcnam_trp.F90

    r4359 r4624  
    9797      READ  ( numnat_cfg, namtrc_adv, IOSTAT = ios, ERR = 902 ) 
    9898902   IF( ios /= 0 ) CALL ctl_nam ( ios , 'namtrc_adv in configuration namelist', lwp ) 
    99       WRITE ( numont, namtrc_adv ) 
     99      IF(lwm) WRITE ( numont, namtrc_adv ) 
    100100 
    101101      IF(lwp) THEN                    ! Namelist print 
     
    119119      READ  ( numnat_cfg, namtrc_ldf, IOSTAT = ios, ERR = 904 ) 
    120120904   IF( ios /= 0 ) CALL ctl_nam ( ios , 'namtrc_ldf in configuration namelist', lwp ) 
    121       WRITE ( numont, namtrc_ldf ) 
     121      IF(lwm) WRITE ( numont, namtrc_ldf ) 
    122122 
    123123      IF(lwp) THEN                    ! Namelist print 
     
    144144      READ  ( numnat_cfg, namtrc_zdf, IOSTAT = ios, ERR = 906 ) 
    145145906   IF( ios /= 0 ) CALL ctl_nam ( ios , 'namtrc_zdf in configuration namelist', lwp ) 
    146       WRITE ( numont, namtrc_zdf ) 
     146      IF(lwm) WRITE ( numont, namtrc_zdf ) 
    147147 
    148148      IF(lwp) THEN                     !   ! Control print 
     
    161161      READ  ( numnat_cfg, namtrc_rad, IOSTAT = ios, ERR = 908 ) 
    162162908   IF( ios /= 0 ) CALL ctl_nam ( ios , 'namtrc_rad in configuration namelist', lwp ) 
    163       WRITE ( numont, namtrc_rad ) 
     163      IF(lwm) WRITE ( numont, namtrc_rad ) 
    164164 
    165165      IF(lwp) THEN                     !   ! Control print 
     
    177177      READ  ( numnat_cfg, namtrc_dmp, IOSTAT = ios, ERR = 910) 
    178178910   IF( ios /= 0 ) CALL ctl_nam ( ios , 'namtrc_dmp in configuration namelist', lwp ) 
    179       WRITE ( numont, namtrc_dmp ) 
     179      IF(lwm) WRITE ( numont, namtrc_dmp ) 
    180180 
    181181      IF(lwp) THEN                       ! Namelist print 
Note: See TracChangeset for help on using the changeset viewer.