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 9366 for branches/UKMO/test_moci_test_suite_namelist_read/NEMOGCM/NEMO/OPA_SRC/DYN/dynspg_ts.F90 – NEMO

Ignore:
Timestamp:
2018-02-28T16:29:13+01:00 (6 years ago)
Author:
andmirek
Message:

#2050 first version. Compiled OK in moci test suite

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/UKMO/test_moci_test_suite_namelist_read/NEMOGCM/NEMO/OPA_SRC/DYN/dynspg_ts.F90

    r8243 r9366  
    5858   PUBLIC dyn_spg_ts_init   !    "      "     "    " 
    5959   PUBLIC ts_rst            !    "      "     "    " 
     60   PRIVATE ts_namelist    
    6061 
    6162   INTEGER, SAVE :: icycle  ! Number of barotropic sub-steps for each internal step nn_baro <= 2.5 nn_baro 
     
    10811082      !!---------------------------------------------------------------------- 
    10821083      ! 
    1083       REWIND( numnam_ref )              ! Namelist namsplit in reference namelist : time splitting parameters 
    1084       READ  ( numnam_ref, namsplit, IOSTAT = ios, ERR = 901) 
    1085 901   IF( ios /= 0 ) CALL ctl_nam ( ios , 'namsplit in reference namelist', lwp ) 
    1086  
    1087       REWIND( numnam_cfg )              ! Namelist namsplit in configuration namelist : time splitting parameters 
    1088       READ  ( numnam_cfg, namsplit, IOSTAT = ios, ERR = 902 ) 
    1089 902   IF( ios /= 0 ) CALL ctl_nam ( ios , 'namsplit in configuration namelist', lwp ) 
     1084      IF(lwm) THEN 
     1085         REWIND( numnam_ref )              ! Namelist namsplit in reference namelist : time splitting parameters 
     1086         READ  ( numnam_ref, namsplit, IOSTAT = ios, ERR = 901) 
     1087901      IF( ios /= 0 ) CALL ctl_nam ( ios , 'namsplit in reference namelist', lwm ) 
     1088         REWIND( numnam_cfg )              ! Namelist namsplit in configuration namelist : time splitting parameters 
     1089         READ  ( numnam_cfg, namsplit, IOSTAT = ios, ERR = 902 ) 
     1090902      IF( ios /= 0 ) CALL ctl_nam ( ios , 'namsplit in configuration namelist', lwm ) 
     1091      ENDIF 
     1092 
    10901093      IF(lwm) WRITE ( numond, namsplit ) 
     1094 
     1095      CALL ts_namelist() 
     1096 
    10911097      ! 
    10921098      !         ! Max courant number for ext. grav. waves 
     
    11721178      ! 
    11731179   END SUBROUTINE dyn_spg_ts_init 
     1180 
     1181      SUBROUTINE ts_namelist() 
     1182     !!--------------------------------------------------------------------- 
     1183     !!                   ***  ROUTINE ts_namelist  *** 
     1184     !!                      
     1185     !! ** Purpose :   Broadcast namelist variables read by procesor lwm 
     1186     !! 
     1187     !! ** Method  :   use lib_mpp 
     1188     !!---------------------------------------------------------------------- 
     1189#if defined key_mpp_mpi 
     1190      CALL mpp_bcast(ln_bt_fw) 
     1191      CALL mpp_bcast(ln_bt_av) 
     1192      CALL mpp_bcast(ln_bt_nn_auto) 
     1193      CALL mpp_bcast(nn_baro) 
     1194      CALL mpp_bcast(rn_bt_cmax) 
     1195      CALL mpp_bcast(nn_bt_flt) 
     1196#endif 
     1197   END SUBROUTINE ts_namelist 
    11741198 
    11751199#else 
Note: See TracChangeset for help on using the changeset viewer.