Skip to content

Commit

Permalink
Fix readability-implicit-bool-conversion and Fix readability-string-c…
Browse files Browse the repository at this point in the history
…ompare (#252)
  • Loading branch information
marchdf authored Sep 19, 2023
1 parent c3a7360 commit e23761d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Source/PeleLMRegrid.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ PeleLM::regrid(int lbase, amrex::Real time, bool initial)
(ParallelDescriptor::MyProc() ==
ParallelDescriptor::IOProcessorNumber())) {
remakeLevel = static_cast<int>(
(static_cast<int>(remakeLevel != 0) != 0) ||
(remakeLevel != 0) ||
(testEfficiency >
m_loadBalanceEffRatioThreshold * currentEfficiency));
}
Expand Down Expand Up @@ -222,7 +222,7 @@ PeleLM::regrid(int lbase, amrex::Real time, bool initial)
(ParallelDescriptor::MyProc() ==
ParallelDescriptor::IOProcessorNumber())) {
remakeLevel = static_cast<int>(
(static_cast<int>(remakeLevel != 0) != 0) ||
(remakeLevel != 0) ||
(testEfficiency >
m_loadBalanceEffRatioThreshold * currentEfficiency));
}
Expand Down

0 comments on commit e23761d

Please sign in to comment.