Changeset 9366 for branches/UKMO/test_moci_test_suite_namelist_read/NEMOGCM/NEMO/OPA_SRC/DYN/dynnept.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/DYN/dynnept.F90
r6486 r9366 40 40 !! dyn_nept_div_cur_init is called only by dyn_nept_init, within this module 41 41 !! dyn_nept_vel is called only by dyn_nept_cor, within this module 42 PRIVATE nept_namelist 42 43 43 44 !! * Shared module variables … … 118 119 ! Define the (simplified) Neptune parameters 119 120 ! ========================================== 120 121 REWIND( numnam_ref ) ! Namelist namdyn_nept in reference namelist : Simplified Neptune 122 READ ( numnam_ref, namdyn_nept, IOSTAT = ios, ERR = 901) 123 901 IF( ios /= 0 ) CALL ctl_nam ( ios , 'namdyn_nept in reference namelist', lwp ) 124 125 REWIND( numnam_cfg ) ! Namelist namdyn_nept in reference namelist : Simplified Neptune 126 READ ( numnam_cfg, namdyn_nept, IOSTAT = ios, ERR = 902 ) 127 902 IF( ios /= 0 ) CALL ctl_nam ( ios , 'namdyn_nept in configuration namelist', lwp ) 121 IF(lwm) THEN 122 REWIND( numnam_ref ) ! Namelist namdyn_nept in reference namelist : Simplified Neptune 123 READ ( numnam_ref, namdyn_nept, IOSTAT = ios, ERR = 901) 124 901 IF( ios /= 0 ) CALL ctl_nam ( ios , 'namdyn_nept in reference namelist', lwm ) 125 REWIND( numnam_cfg ) ! Namelist namdyn_nept in reference namelist : Simplified Neptune 126 READ ( numnam_cfg, namdyn_nept, IOSTAT = ios, ERR = 902 ) 127 902 IF( ios /= 0 ) CALL ctl_nam ( ios , 'namdyn_nept in configuration namelist', lwm ) 128 ENDIF 129 128 130 IF(lwm) WRITE ( numond, namdyn_nept ) 131 132 CALL nept_namelist() 129 133 130 134 IF(lwp) THEN ! Control print … … 595 599 END SUBROUTINE dyn_nept_smooth_vel 596 600 601 SUBROUTINE nept_namelist() 602 !!--------------------------------------------------------------------- 603 !! *** ROUTINE nept_namelist *** 604 !! 605 !! ** Purpose : Broadcast namelist variables read by procesor lwm 606 !! 607 !! ** Method : use lib_mpp 608 !!---------------------------------------------------------------------- 609 #if defined key_mpp_mpi 610 CALL mpp_bcast(ln_neptsimp) 611 CALL mpp_bcast(ln_smooth_neptvel) 612 CALL mpp_bcast(rn_tslse) 613 CALL mpp_bcast(rn_tslsp) 614 CALL mpp_bcast(ln_neptramp) 615 CALL mpp_bcast(rn_htrmin) 616 CALL mpp_bcast(rn_htrmax) 617 #endif 618 END SUBROUTINE nept_namelist 597 619 END MODULE dynnept
Note: See TracChangeset
for help on using the changeset viewer.