diff --git a/Source/driver/Castro.cpp b/Source/driver/Castro.cpp index 750d7f0c8a..11d10c1b9d 100644 --- a/Source/driver/Castro.cpp +++ b/Source/driver/Castro.cpp @@ -306,7 +306,7 @@ Castro::read_params () #elif (AMREX_SPACEDIM == 2) if ( dgeom.IsSPHERICAL() ) { - if ( (dgeom.ProbLo(1) < 0.0_rt) && (dgeom.ProbHi(1) > 3.14159265359_rt) ) + if ( (dgeom.ProbLo(1) < 0.0_rt) && (dgeom.ProbHi(1) > M_PI) ) { amrex::Abort("Theta must be within [0, Pi] for spherical coordinate system in 2D"); }