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/TRA/trabbl.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/TRA/trabbl.F90

    r6486 r9366  
    4848   PUBLIC   tra_bbl_adv   !  -          -          -              - 
    4949   PUBLIC   bbl           !  routine called by trcbbl.F90 and dtadyn.F90 
     50   PRIVATE  bbl_namelist 
    5051 
    5152   LOGICAL, PUBLIC, PARAMETER ::   lk_trabbl = .TRUE.    !: bottom boundary layer flag 
     
    508509      CALL wrk_alloc( jpi, jpj, zmbk ) 
    509510      ! 
    510  
    511       REWIND( numnam_ref )              ! Namelist nambbl in reference namelist : Bottom boundary layer scheme 
    512       READ  ( numnam_ref, nambbl, IOSTAT = ios, ERR = 901) 
    513 901   IF( ios /= 0 ) CALL ctl_nam ( ios , 'nambbl in reference namelist', lwp ) 
    514  
    515       REWIND( numnam_cfg )              ! Namelist nambbl in configuration namelist : Bottom boundary layer scheme 
    516       READ  ( numnam_cfg, nambbl, IOSTAT = ios, ERR = 902 ) 
    517 902   IF( ios /= 0 ) CALL ctl_nam ( ios , 'nambbl in configuration namelist', lwp ) 
     511      IF(lwm) THEN 
     512         REWIND( numnam_ref )              ! Namelist nambbl in reference namelist : Bottom boundary layer scheme 
     513         READ  ( numnam_ref, nambbl, IOSTAT = ios, ERR = 901) 
     514901      IF( ios /= 0 ) CALL ctl_nam ( ios , 'nambbl in reference namelist', lwm ) 
     515         REWIND( numnam_cfg )              ! Namelist nambbl in configuration namelist : Bottom boundary layer scheme 
     516         READ  ( numnam_cfg, nambbl, IOSTAT = ios, ERR = 902 ) 
     517902      IF( ios /= 0 ) CALL ctl_nam ( ios , 'nambbl in configuration namelist', lwm ) 
     518      ENDIF 
     519 
    518520      IF(lwm) WRITE ( numond, nambbl ) 
    519521      ! 
     522      CALL bbl_namelist() 
     523 
    520524      l_bbl = .TRUE.                 !* flag to compute bbl coef and transport 
    521525      ! 
     
    599603   END SUBROUTINE tra_bbl_init 
    600604 
     605   SUBROUTINE bbl_namelist() 
     606     !!--------------------------------------------------------------------- 
     607     !!                   ***  ROUTINE bbl_namelist  *** 
     608     !!                      
     609     !! ** Purpose :   Broadcast namelist variables read by procesor lwm 
     610     !! 
     611     !! ** Method  :   use lib_mpp 
     612     !!---------------------------------------------------------------------- 
     613#if defined key_mpp_mpi 
     614      CALL mpp_bcast(nn_bbl_ldf) 
     615      CALL mpp_bcast(nn_bbl_adv) 
     616      CALL mpp_bcast(rn_ahtbbl) 
     617      CALL mpp_bcast(rn_gambbl) 
     618#endif 
     619   END SUBROUTINE bbl_namelist 
     620 
    601621#else 
    602622   !!---------------------------------------------------------------------- 
Note: See TracChangeset for help on using the changeset viewer.