From e23761d200af665addc52f35efaff31c732bc016 Mon Sep 17 00:00:00 2001 From: "Marc T. Henry de Frahan" Date: Tue, 19 Sep 2023 12:59:38 -0600 Subject: [PATCH] Fix readability-implicit-bool-conversion and Fix readability-string-compare (#252) --- Source/PeleLMRegrid.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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)); }