diff --git a/integration/integrator_setup_sdc.H b/integration/integrator_setup_sdc.H index 0438f7bd8..f55c46ff6 100644 --- a/integration/integrator_setup_sdc.H +++ b/integration/integrator_setup_sdc.H @@ -3,6 +3,7 @@ #include #include +#include #include @@ -260,10 +261,10 @@ void integrator_cleanup (IntegratorT& int_state, BurnT& state, std::cout << std::setprecision(16) << state.ydot_a[SFX+n] << " "; } std::cout << std::endl; -#elif defined(ALLOW_GPU_PRINTF) - AMREX_GPU_PRINTF("[ERROR] integration failed in net, istate = %d, time = %g, dt = %g, dens_start = %g, temp_start = %g\n", - istate, state.time, dt, state.rho_orig, state_save.T_in); #endif +#elif defined(ALLOW_GPU_PRINTF) + AMREX_DEVICE_PRINTF("[ERROR] integration failed in net, istate = %d, time = %g, dt = %g, dens_start = %g, temp_start = %g\n", + istate, state.time, dt, state.rho_orig, state_save.T_in); #endif } else { #ifndef AMREX_USE_GPU diff --git a/integration/integrator_setup_strang.H b/integration/integrator_setup_strang.H index 480b57246..e4fcb9eb8 100644 --- a/integration/integrator_setup_strang.H +++ b/integration/integrator_setup_strang.H @@ -3,6 +3,7 @@ #include #include +#include #include @@ -218,8 +219,8 @@ void integrator_cleanup (IntegratorT& int_state, BurnT& state, std::cout << std::endl; std::cout << "energy generated = " << state.e << std::endl; #elif defined(ALLOW_GPU_PRINTF) - AMREX_GPU_PRINTF("[ERROR] integration failed in net, istate = %d, time = %g, dt = %g, dens = %g, temp_start = %g\n", - istate, int_state.t, dt, state.rho, state_save.T_in); + AMREX_DEVICE_PRINTF("[ERROR] integration failed in net, istate = %d, time = %g, dt = %g, dens = %g, temp_start = %g\n", + istate, int_state.t, dt, state.rho, state_save.T_in); #endif } else { #ifndef AMREX_USE_GPU