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/BDY/bdytides.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/BDY/bdytides.F90

    r6487 r9366  
    4141   PUBLIC   bdytide_update   ! routine called in bdy_dta 
    4242   PUBLIC   bdy_dta_tides    ! routine called in dyn_spg_ts 
     43   PRIVATE  tide_namelist 
    4344 
    4445   TYPE, PUBLIC ::   TIDES_DATA     !: Storage for external tidal harmonics data 
     
    101102      ENDIF 
    102103 
    103       REWIND(numnam_cfg) 
     104      IF(lwm) REWIND(numnam_cfg) 
    104105 
    105106      DO ib_bdy = 1, nb_bdy 
     
    114115 
    115116            ! Don't REWIND here - may need to read more than one of these namelists.  
    116             READ  ( numnam_ref, nambdy_tide, IOSTAT = ios, ERR = 901) 
    117 901         IF( ios /= 0 ) CALL ctl_nam ( ios , 'nambdy_tide in reference namelist', lwp ) 
    118             READ  ( numnam_cfg, nambdy_tide, IOSTAT = ios, ERR = 902 ) 
    119 902         IF( ios /= 0 ) CALL ctl_nam ( ios , 'nambdy_tide in configuration namelist', lwp ) 
     117            IF(lwm) THEN 
     118               READ  ( numnam_ref, nambdy_tide, IOSTAT = ios, ERR = 901) 
     119901            IF( ios /= 0 ) CALL ctl_nam ( ios , 'nambdy_tide in reference namelist', lwm ) 
     120               READ  ( numnam_cfg, nambdy_tide, IOSTAT = ios, ERR = 902 ) 
     121902            IF( ios /= 0 ) CALL ctl_nam ( ios , 'nambdy_tide in configuration namelist', lwm ) 
     122            ENDIF 
     123 
    120124            IF(lwm) WRITE ( numond, nambdy_tide ) 
     125 
     126            CALL tide_namelist(filtide) 
     127 
    121128            !                                               ! Parameter control and print 
    122129            IF(lwp) WRITE(numout,*) '  ' 
     
    605612 
    606613  END SUBROUTINE tide_init_velocities 
     614 
     615  SUBROUTINE tide_namelist(cd_filtide) 
     616     !!--------------------------------------------------------------------- 
     617     !!                   ***  ROUTINE tide_namelist  *** 
     618     !!                      
     619     !! ** Purpose :   Broadcast namelist variables read by procesor lwm 
     620     !! 
     621     !! ** Method  :   use lib_mpp 
     622     !!---------------------------------------------------------------------- 
     623     CHARACTER(len=80)                         ::   cd_filtide 
     624#if defined key_mpp_mpi 
     625      CALL mpp_bcast(cd_filtide, 80) 
     626      CALL mpp_bcast(ln_bdytide_2ddta) 
     627      CALL mpp_bcast(ln_bdytide_conj 
     628#endif 
     629  END SUBROUTINE tide_namelist 
     630 
    607631#else 
    608632   !!---------------------------------------------------------------------- 
Note: See TracChangeset for help on using the changeset viewer.