Skip to content

Commit ed8b2c3

Browse files
committed
Replace amrex::Warning with abort to avoid numerous statments for MPI runs
1 parent 268084c commit ed8b2c3

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

Source/Spray/SpraySetup.cpp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -77,9 +77,10 @@ SprayParticleContainer::readSprayParams(int& particle_verbose)
7777
#if AMREX_SPACEDIM == 1
7878
amrex::Abort("Spray model not valid in 1D");
7979
#elif AMREX_SPACEDIM == 2
80-
amrex::Warning(
81-
" Warning: Spray model in 2D assumes narrow domain in z-direction (Lz = "
82-
"dz)");
80+
amrex::Print()
81+
<< " Warning: Spray model in 2D assumes narrow domain in z-direction (Lz = "
82+
"dz)!"
83+
<< std::endl;
8384
#endif
8485
m_sprayData = new SprayData{};
8586
d_sprayData =

0 commit comments

Comments
 (0)