Skip to content

Commit

Permalink
this seems to work
Browse files Browse the repository at this point in the history
  • Loading branch information
zingale committed Jul 23, 2024
1 parent 2b072aa commit 9363007
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
7 changes: 4 additions & 3 deletions integration/integrator_setup_sdc.H
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

#include <AMReX_REAL.H>
#include <AMReX_ANSIEscCode.H>
#include <AMReX_GpuPrint.H>

#include <iomanip>

Expand Down Expand Up @@ -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
Expand Down
5 changes: 3 additions & 2 deletions integration/integrator_setup_strang.H
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

#include <AMReX_REAL.H>
#include <AMReX_ANSIEscCode.H>
#include <AMReX_GpuPrint.H>

#include <iomanip>

Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 9363007

Please sign in to comment.