Skip to content

Commit

Permalink
Remove "== true" in condition checks
Browse files Browse the repository at this point in the history
  • Loading branch information
ckhroulev committed Feb 12, 2021
1 parent 4242dac commit e13e9f6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/frontretreat/util/IcebergRemover.cc
Expand Up @@ -69,9 +69,9 @@ void IcebergRemover::update_impl(const IceModelVec2Int &bc_mask,
for (Points p(*m_grid); p; p.next()) {
const int i = p.i(), j = p.j();

if (mask.grounded_ice(i,j) == true) {
if (mask.grounded_ice(i,j)) {
m_iceberg_mask(i,j) = mask_grounded_ice;
} else if (mask.floating_ice(i,j) == true) {
} else if (mask.floating_ice(i,j)) {
m_iceberg_mask(i,j) = mask_floating_ice;
}
}
Expand Down

0 comments on commit e13e9f6

Please sign in to comment.