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 9383 for branches/UKMO/test_moci_test_suite_namelist_read/NEMOGCM/NEMO/OPA_SRC/SBC/sbcmod.F90 – NEMO

Ignore:
Timestamp:
2018-03-08T10:22:55+01:00 (6 years ago)
Author:
andmirek
Message:

#2050 fixes and changes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/UKMO/test_moci_test_suite_namelist_read/NEMOGCM/NEMO/OPA_SRC/SBC/sbcmod.F90

    r9366 r9383  
    106106         REWIND( numnam_ref )              ! Namelist namsbc in reference namelist : Surface boundary 
    107107         READ  ( numnam_ref, namsbc, IOSTAT = ios, ERR = 901) 
    108 901      IF( ios /= 0 ) CALL ctl_nam ( ios , 'namsbc in reference namelist', lwm ) 
     108901      CONTINUE 
     109      ENDIF 
     110      call mpp_bcast(ios) 
     111      IF( ios /= 0 ) CALL ctl_nam ( ios , 'namsbc in reference namelist', lwp ) 
     112      IF(lwm) THEN 
    109113         REWIND( numnam_cfg )              ! Namelist namsbc in configuration namelist : Parameters of the run 
    110114         READ  ( numnam_cfg, namsbc, IOSTAT = ios, ERR = 902 ) 
    111 902      IF( ios /= 0 ) CALL ctl_nam ( ios , 'namsbc in configuration namelist', lwm ) 
    112       ENDIF 
     115902      CONTINUE 
     116      ENDIF 
     117      call mpp_bcast(ios) 
     118      IF( ios /= 0 ) CALL ctl_nam ( ios , 'namsbc in configuration namelist', lwp ) 
     119 
    113120      IF(lwm) WRITE ( numond, namsbc ) 
    114121 
Note: See TracChangeset for help on using the changeset viewer.