Changeset 9366 for branches/UKMO/test_moci_test_suite_namelist_read/NEMOGCM/NEMO/OPA_SRC/TRA/trabbl.F90
- Timestamp:
- 2018-02-28T16:29:13+01:00 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/UKMO/test_moci_test_suite_namelist_read/NEMOGCM/NEMO/OPA_SRC/TRA/trabbl.F90
r6486 r9366 48 48 PUBLIC tra_bbl_adv ! - - - - 49 49 PUBLIC bbl ! routine called by trcbbl.F90 and dtadyn.F90 50 PRIVATE bbl_namelist 50 51 51 52 LOGICAL, PUBLIC, PARAMETER :: lk_trabbl = .TRUE. !: bottom boundary layer flag … … 508 509 CALL wrk_alloc( jpi, jpj, zmbk ) 509 510 ! 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) 514 901 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 ) 517 902 IF( ios /= 0 ) CALL ctl_nam ( ios , 'nambbl in configuration namelist', lwm ) 518 ENDIF 519 518 520 IF(lwm) WRITE ( numond, nambbl ) 519 521 ! 522 CALL bbl_namelist() 523 520 524 l_bbl = .TRUE. !* flag to compute bbl coef and transport 521 525 ! … … 599 603 END SUBROUTINE tra_bbl_init 600 604 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 601 621 #else 602 622 !!----------------------------------------------------------------------
Note: See TracChangeset
for help on using the changeset viewer.