Skip to content

Commit 9f622bf

Browse files
fix get_param STOKES_MOST and WAVE_ENHANCED_USTAR in MOM.F90 (#418)
* fix get_param STOKES_MOST and WAVE_ENHANCED_USTAR in MOM.F90 by opening/closing appropriate parameter blocks * remove unnecessary comment * remove more unnecessary comment * do not log MLE block from MOM.F90
1 parent 258d4e9 commit 9f622bf

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

src/core/MOM.F90

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ module MOM
3636
use MOM_error_handler, only : MOM_set_verbosity, callTree_showQuery
3737
use MOM_error_handler, only : callTree_enter, callTree_leave, callTree_waypoint
3838
use MOM_file_parser, only : read_param, get_param, log_version, param_file_type
39+
use MOM_file_parser, only : openParameterBlock, closeParameterBlock
3940
use MOM_forcing_type, only : forcing, mech_forcing, find_ustar
4041
use MOM_forcing_type, only : MOM_forcing_chksum, MOM_mech_forcing_chksum
4142
use MOM_get_input, only : Get_MOM_Input, directories
@@ -2471,12 +2472,15 @@ subroutine initialize_MOM(Time, Time_init, param_file, dirs, CS, &
24712472
call MOM_error(FATAL, "initialize_MOM: "//&
24722473
"FPMIX=True only works when SPLIT=True.")
24732474
endif
2474-
! STOKES_MOST and needed to
2475+
call openParameterBlock(param_file, 'KPP', do_not_log=.true.)
24752476
call get_param(param_file, '', 'STOKES_MOST', CS%StokesMOST, &
24762477
'If True, use Stokes Similarity package.', &
24772478
default=.False., do_not_log=.true.)
2479+
call closeParameterBlock(param_file)
2480+
call openParameterBlock(param_file,'MLE', do_not_log=.true.)
24782481
call get_param(param_file, '', "WAVE_ENHANCED_USTAR", CS%wave_enhanced_ustar, &
24792482
"If true, enhance ustar in Bodner23.", default=.false., do_not_log=.true.)
2483+
call closeParameterBlock(param_file)
24802484
call get_param(param_file, "MOM", "BOUSSINESQ", Boussinesq, &
24812485
"If true, make the Boussinesq approximation.", default=.true., do_not_log=.true.)
24822486
call get_param(param_file, "MOM", "SEMI_BOUSSINESQ", semi_Boussinesq, &

0 commit comments

Comments
 (0)