Skip to content

Commit

Permalink
Use boxes.empty()
Browse files Browse the repository at this point in the history
  • Loading branch information
dpgrote committed Mar 16, 2024
1 parent 6c29607 commit 485659f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Src/Base/AMReX_MultiFabUtil.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ namespace {
boxes.push_back(is.second);
slice_to_full_ba_map.push_back(is.first);
}
if (boxes.size() > 0) {
if (!boxes.empty()) {
BoxArray slice_ba(boxes.data(), static_cast<int>(boxes.size()));
DistributionMapping slice_dmap(std::move(procs));

Expand Down

0 comments on commit 485659f

Please sign in to comment.