Skip to content

Commit

Permalink
Bug fix to compute Rd_dx whenever MEKE is used
Browse files Browse the repository at this point in the history
The default config of MEKE uses Rd_dx to compute barotropic and bottom energy fractions.
 If Rd_dx not computed here, it will be set to zero in MEKE and as a result gamma_b=gamma_t=1.
  • Loading branch information
MFJansen authored Oct 5, 2018
1 parent 2701b7a commit 9403115
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -804,6 +804,7 @@ subroutine VarMix_init(Time, G, param_file, diag, CS)
CS%calculate_cg1 = CS%calculate_cg1 .or. use_FGNV_streamfn
call get_param(param_file, mdl, "USE_MEKE", use_MEKE, &
default=.false., do_not_log=.true.)
CS%calculate_Rd_dx = CS%calculate_Rd_dx .or. use_MEKE
CS%calculate_Eady_growth_rate = CS%calculate_Eady_growth_rate .or. use_MEKE
call get_param(param_file, mdl, "KHTR_PASSIVITY_COEFF", KhTr_passivity_coeff, &
default=0., do_not_log=.true.)
Expand Down

0 comments on commit 9403115

Please sign in to comment.