From b714f7d905fa046a906be4a4ac68c992bcfb3a8a Mon Sep 17 00:00:00 2001 From: Spencer Bryngelson Date: Thu, 1 Oct 2026 10:38:46 -0400 Subject: [PATCH] Copy the ib flag to the device #1792 added two device-side reads of ib -- skipping immersed-boundary interior cells in the adaptive-dt reduction (s_compute_dt) and in the CFL stability statistics (s_write_run_time_information). ib is GPU_DECLARE'd through SIM_GPU_DECL_VARS but was never GPU_UPDATE'd, so on the device it stayed .false. and GPU builds kept including IB interior cells in dt while CPU builds excluded them. With cfl_adap_dt=T this gives GPU runs a different dt from CPU runs. --- src/simulation/m_global_parameters.fpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/simulation/m_global_parameters.fpp b/src/simulation/m_global_parameters.fpp index e72afb668c..150a996638 100644 --- a/src/simulation/m_global_parameters.fpp +++ b/src/simulation/m_global_parameters.fpp @@ -991,7 +991,7 @@ contains $:GPU_UPDATE(device='[alt_soundspeed, acoustic_source, num_source]') $:GPU_UPDATE(device='[dt, sys_size, buff_size, eqn_idx, mpp_lim, bubbles_euler, hypoelasticity, alt_soundspeed, & - & avg_state, model_eqns, mixture_err, grid_geometry, cyl_coord, mp_weno, weno_eps, teno_CT, low_Mach]') + & avg_state, model_eqns, mixture_err, grid_geometry, cyl_coord, mp_weno, weno_eps, teno_CT, low_Mach, ib]') $:GPU_UPDATE(device='[riemann_hypo_ADC, ADC_kappa, hll_u_interface, hypo_hll_interface_rhs, hypo_nc_mode]') $:GPU_UPDATE(device='[Bx0]')