Skip to content

Commit

Permalink
fix nranks maxstep assert (#1041)
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexanderSinn authored Nov 22, 2023
1 parent a690500 commit a40e4c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Hipace.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ Hipace::Hipace () :
AMREX_ALWAYS_ASSERT_WITH_MESSAGE(
(((double(m_comms_buffer_max_leading_slices) + m_comms_buffer_max_trailing_slices)
* amrex::ParallelDescriptor::NProcs()) > m_3D_geom[0].Domain().length(2))
|| (m_max_step <= amrex::ParallelDescriptor::NProcs()),
|| (m_max_step < amrex::ParallelDescriptor::NProcs()),
"comms_buffer_max_leading_slices and comms_buffer_max_trailing_slices must be large enough"
" to distribute all slices between all ranks if there are more timesteps than ranks");

Expand Down

0 comments on commit a40e4c7

Please sign in to comment.