diff --git a/Source/PeleLMRegrid.cpp b/Source/PeleLMRegrid.cpp index 0198909e..d27195cd 100644 --- a/Source/PeleLMRegrid.cpp +++ b/Source/PeleLMRegrid.cpp @@ -57,7 +57,7 @@ PeleLM::regrid(int lbase, amrex::Real time, bool initial) (ParallelDescriptor::MyProc() == ParallelDescriptor::IOProcessorNumber())) { remakeLevel = static_cast( - (static_cast(remakeLevel != 0) != 0) || + (remakeLevel != 0) || (testEfficiency > m_loadBalanceEffRatioThreshold * currentEfficiency)); } @@ -222,7 +222,7 @@ PeleLM::regrid(int lbase, amrex::Real time, bool initial) (ParallelDescriptor::MyProc() == ParallelDescriptor::IOProcessorNumber())) { remakeLevel = static_cast( - (static_cast(remakeLevel != 0) != 0) || + (remakeLevel != 0) || (testEfficiency > m_loadBalanceEffRatioThreshold * currentEfficiency)); }