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/DIA/diadct.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/DIA/diadct.F90

    r6486 r9366  
    5959  PRIVATE  transport 
    6060  PRIVATE  dia_dct_wri 
     61  PRIVATE  dct_namelist 
    6162 
    6263#include "domzgr_substitute.h90" 
     
    144145     IF( nn_timing == 1 )   CALL timing_start('dia_dct_init') 
    145146 
    146      REWIND( numnam_ref )              ! Namelist namdct in reference namelist : Diagnostic: transport through sections 
    147      READ  ( numnam_ref, namdct, IOSTAT = ios, ERR = 901) 
    148 901  IF( ios /= 0 ) CALL ctl_nam ( ios , 'namdct in reference namelist', lwp ) 
    149  
    150      REWIND( numnam_cfg )              ! Namelist namdct in configuration namelist : Diagnostic: transport through sections 
    151      READ  ( numnam_cfg, namdct, IOSTAT = ios, ERR = 902 ) 
    152 902  IF( ios /= 0 ) CALL ctl_nam ( ios , 'namdct in configuration namelist', lwp ) 
     147     IF(lwm) THEN 
     148        REWIND( numnam_ref )              ! Namelist namdct in reference namelist : Diagnostic: transport through sections 
     149        READ  ( numnam_ref, namdct, IOSTAT = ios, ERR = 901) 
     150901     IF( ios /= 0 ) CALL ctl_nam ( ios , 'namdct in reference namelist', lwm ) 
     151        REWIND( numnam_cfg )              ! Namelist namdct in configuration namelist : Diagnostic: transport through sections 
     152        READ  ( numnam_cfg, namdct, IOSTAT = ios, ERR = 902 ) 
     153902     IF( ios /= 0 ) CALL ctl_nam ( ios , 'namdct in configuration namelist', lwm ) 
     154     ENDIF 
     155 
    153156     IF(lwm) WRITE ( numond, namdct ) 
     157 
     158     CALL dct_namelist() 
    154159 
    155160     IF( lwp ) THEN 
     
    12921297  END FUNCTION interp 
    12931298 
     1299  SUBROUTINE dct_namelist() 
     1300     !!--------------------------------------------------------------------- 
     1301     !!                   ***  ROUTINE dct_namelist  *** 
     1302     !!                      
     1303     !! ** Purpose :   Broadcast namelist variables read by procesor lwm 
     1304     !! 
     1305     !! ** Method  :   use lib_mpp 
     1306     !!---------------------------------------------------------------------- 
     1307#if defined key_mpp_mpi 
     1308      CALL mpp_bcast(nn_dct) 
     1309      CALL mpp_bcast(nn_dctwri) 
     1310      CALL mpp_bcast(nn_secdebug) 
     1311#endif 
     1312  END SUBROUTINE dct_namelist 
     1313 
    12941314#else 
    12951315   !!---------------------------------------------------------------------- 
Note: See TracChangeset for help on using the changeset viewer.