Skip to content

Commit 4c67385

Browse files
committed
fix: add GPU_DECLARE/GPU_UPDATE for int_comp, ic_eps, ic_beta
1 parent b7f85c6 commit 4c67385

1 file changed

Lines changed: 19 additions & 17 deletions

File tree

src/simulation/m_global_parameters.fpp

Lines changed: 19 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -148,23 +148,24 @@ module m_global_parameters
148148
logical :: nv_uvm_pref_gpu !< Enable explicit gpu memory hints (default FALSE)
149149
!> @}
150150

151-
real(wp) :: weno_eps !< Binding for the WENO nonlinear weights
152-
real(wp) :: teno_CT !< Smoothness threshold for TENO
153-
logical :: mp_weno !< Monotonicity preserving (MP) WENO
154-
logical :: weno_avg !< Average left/right cell-boundary states
155-
logical :: weno_Re_flux !< WENO reconstruct velocity gradients for viscous stress tensor
156-
integer :: riemann_solver !< Riemann solver algorithm
157-
integer :: low_Mach !< Low Mach number fix to HLLC Riemann solver
158-
integer :: wave_speeds !< Wave speeds estimation method
159-
integer :: avg_state !< Average state evaluation method
160-
logical :: alt_soundspeed !< Alternate mixture sound speed
161-
logical :: null_weights !< Null undesired WENO weights
162-
logical :: mixture_err !< Mixture properties correction
163-
logical :: hypoelasticity !< hypoelasticity modeling
164-
logical :: hyperelasticity !< hyperelasticity modeling
165-
integer :: int_comp !< Interface compression: 0=off, 1=THINC, 2=MTHINC
166-
real(wp) :: ic_eps !< THINC Epsilon to compress on surface cells
167-
real(wp) :: ic_beta !< THINC Sharpness Parameter
151+
real(wp) :: weno_eps !< Binding for the WENO nonlinear weights
152+
real(wp) :: teno_CT !< Smoothness threshold for TENO
153+
logical :: mp_weno !< Monotonicity preserving (MP) WENO
154+
logical :: weno_avg !< Average left/right cell-boundary states
155+
logical :: weno_Re_flux !< WENO reconstruct velocity gradients for viscous stress tensor
156+
integer :: riemann_solver !< Riemann solver algorithm
157+
integer :: low_Mach !< Low Mach number fix to HLLC Riemann solver
158+
integer :: wave_speeds !< Wave speeds estimation method
159+
integer :: avg_state !< Average state evaluation method
160+
logical :: alt_soundspeed !< Alternate mixture sound speed
161+
logical :: null_weights !< Null undesired WENO weights
162+
logical :: mixture_err !< Mixture properties correction
163+
logical :: hypoelasticity !< hypoelasticity modeling
164+
logical :: hyperelasticity !< hyperelasticity modeling
165+
integer :: int_comp !< Interface compression: 0=off, 1=THINC, 2=MTHINC
166+
real(wp) :: ic_eps !< THINC Epsilon to compress on surface cells
167+
real(wp) :: ic_beta !< THINC Sharpness Parameter
168+
$:GPU_DECLARE(create='[int_comp, ic_eps, ic_beta]')
168169
integer :: hyper_model !< hyperelasticity solver algorithm
169170
logical :: elasticity !< elasticity modeling, true for hyper or hypo
170171
logical, parameter :: chemistry = .${chemistry}$. !< Chemistry modeling
@@ -1245,6 +1246,7 @@ contains
12451246
$:GPU_UPDATE(device='[num_fluids, num_dims, viscous, num_vels, nb, muscl_lim]')
12461247
#:endif
12471248
1249+
$:GPU_UPDATE(device='[int_comp, ic_eps, ic_beta]')
12481250
$:GPU_UPDATE(device='[dir_idx, dir_flg, dir_idx_tau]')
12491251
12501252
$:GPU_UPDATE(device='[relax, relax_model, palpha_eps, ptgalpha_eps]')

0 commit comments

Comments
 (0)