@@ -152,6 +152,7 @@ module m_global_parameters
152152 logical :: nv_uvm_pref_gpu !< Enable explicit gpu memory hints (default FALSE)
153153 !> @}
154154
155+ real (wp) :: muscl_eps !< MUSCL limiter slope- product threshold
155156 real (wp) :: weno_eps !< Binding for the WENO nonlinear weights
156157 real (wp) :: teno_CT !< Smoothness threshold for TENO
157158 logical :: mp_weno !< Monotonicity preserving (MP) WENO
@@ -201,6 +202,7 @@ module m_global_parameters
201202 $:GPU_DECLARE(create= ' [recon_type, muscl_order, muscl_polyn, muscl_lim]' )
202203 #:endif
203204
205+ $:GPU_DECLARE(create= ' [muscl_eps]' )
204206 $:GPU_DECLARE(create= ' [mpp_lim, model_eqns, mixture_err, alt_soundspeed]' )
205207 $:GPU_DECLARE(create= ' [avg_state, mp_weno, weno_eps, teno_CT, hypoelasticity]' )
206208 $:GPU_DECLARE(create= ' [hyperelasticity, hyper_model, elasticity, low_Mach]' )
@@ -547,6 +549,7 @@ contains
547549 model_eqns = dflt_int
548550 mpp_lim = .false.
549551 time_stepper = dflt_int
552+ muscl_eps = dflt_real
550553 weno_eps = dflt_real
551554 teno_CT = dflt_real
552555 mp_weno = .false.
@@ -892,7 +895,16 @@ contains
892895 $:GPU_UPDATE(device=' [igr, igr_order, igr_iter_solver]' )
893896 #:endif
894897
895- ! Initialize viscous fluid count and curvature tracking
898+ ! muscl_eps: use per-limiter defaults when user did not set it
899+ if (f_is_default(muscl_eps)) then
900+ if (muscl_lim <= 2) then
901+ muscl_eps = 1e-9_wp ! minmod, MC
902+ else
903+ muscl_eps = 1e-6_wp ! Van Albada, Van Leer, SUPERBEE
904+ end if
905+ end if
906+
907+ ! Initialize counts: viscous fluids, surface-tension interfaces, curvature interfaces
896908 Re_size = 0
897909 Re_size_max = 0
898910
@@ -1254,6 +1266,7 @@ contains
12541266 $:GPU_UPDATE(device=' [num_fluids, num_dims, viscous, num_vels, nb, muscl_lim]' )
12551267 #:endif
12561268
1269+ $:GPU_UPDATE(device=' [muscl_eps]' )
12571270 $:GPU_UPDATE(device=' [dir_idx, dir_flg, dir_idx_tau]' )
12581271
12591272 $:GPU_UPDATE(device=' [relax, relax_model, palpha_eps, ptgalpha_eps]' )
0 commit comments