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/DOM/dommsk.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/DOM/dommsk.F90

    r6491 r9366  
    3737   PUBLIC   dom_msk         ! routine called by inidom.F90 
    3838   PUBLIC   dom_msk_alloc   ! routine called by nemogcm.F90 
     39   PRIVATE  msk_namelist 
    3940 
    4041   !                            !!* Namelist namlbc : lateral boundary condition * 
     
    147148      CALL wrk_alloc( jpi, jpj, zwf  ) 
    148149      ! 
    149       REWIND( numnam_ref )              ! Namelist namlbc in reference namelist : Lateral momentum boundary condition 
    150       READ  ( numnam_ref, namlbc, IOSTAT = ios, ERR = 901 ) 
    151 901   IF( ios /= 0 ) CALL ctl_nam ( ios , 'namlbc in reference namelist', lwp ) 
    152  
    153       REWIND( numnam_cfg )              ! Namelist namlbc in configuration namelist : Lateral momentum boundary condition 
    154       READ  ( numnam_cfg, namlbc, IOSTAT = ios, ERR = 902 ) 
    155 902   IF( ios /= 0 ) CALL ctl_nam ( ios , 'namlbc in configuration namelist', lwp ) 
     150      IF(lwm) THEN 
     151         REWIND( numnam_ref )              ! Namelist namlbc in reference namelist : Lateral momentum boundary condition 
     152         READ  ( numnam_ref, namlbc, IOSTAT = ios, ERR = 901 ) 
     153901      IF( ios /= 0 ) CALL ctl_nam ( ios , 'namlbc in reference namelist', lwm ) 
     154         REWIND( numnam_cfg )              ! Namelist namlbc in configuration namelist : Lateral momentum boundary condition 
     155         READ  ( numnam_cfg, namlbc, IOSTAT = ios, ERR = 902 ) 
     156902      IF( ios /= 0 ) CALL ctl_nam ( ios , 'namlbc in configuration namelist', lwm ) 
     157      ENDIF 
     158 
    156159      IF(lwm) WRITE ( numond, namlbc ) 
    157        
     160      
     161      CALL msk_namelist()  
     162 
    158163      IF(lwp) THEN                  ! control print 
    159164         WRITE(numout,*) 
     
    717722   END SUBROUTINE dom_msk_nsa 
    718723#endif 
    719     
     724 
     725   SUBROUTINE msk_namelist() 
     726     !!--------------------------------------------------------------------- 
     727     !!                   ***  ROUTINE msk_namelist  *** 
     728     !!                      
     729     !! ** Purpose :   Broadcast namelist variables read by procesor lwm 
     730     !! 
     731     !! ** Method  :   use lib_mpp 
     732     !!---------------------------------------------------------------------- 
     733#if defined key_mpp_mpi 
     734      CALL mpp_bcast(rn_shlat) 
     735      CALL mpp_bcast( ln_vorlat) 
     736#endif 
     737   END SUBROUTINE msk_namelist    
     738 
    720739   !!====================================================================== 
    721740END MODULE dommsk 
Note: See TracChangeset for help on using the changeset viewer.