Skip to content

Commit

Permalink
if we have USE_GPU_PRINTF = TRUE, then fflush the output after burn (#…
Browse files Browse the repository at this point in the history
…2928)

this will catch the prints from the burner that were added to
Microphysics
  • Loading branch information
zingale authored Jul 26, 2024
1 parent c8ef181 commit df7e675
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions Source/reactions/Castro_react.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -417,6 +417,11 @@ Castro::react_state(MultiFab& s, MultiFab& r, Real time, Real dt, const int stra
#if defined(AMREX_USE_HIP)
Gpu::streamSynchronize(); // otherwise HIP may fail to allocate the necessary resources.
#endif

#ifdef ALLOW_GPU_PRINTF
std::fflush(nullptr);
#endif

}

#if defined(AMREX_USE_GPU)
Expand Down Expand Up @@ -812,6 +817,11 @@ Castro::react_state(Real time, Real dt)
#if defined(AMREX_USE_HIP)
Gpu::streamSynchronize(); // otherwise HIP may fail to allocate the necessary resources.
#endif

#ifdef ALLOW_GPU_PRINTF
std::fflush(nullptr);
#endif

}

#if defined(AMREX_USE_GPU)
Expand Down

0 comments on commit df7e675

Please sign in to comment.