Skip to content

Commit

Permalink
no need to check if not doing coalesced
Browse files Browse the repository at this point in the history
  • Loading branch information
lroberts36 committed Nov 28, 2024
1 parent 0f3795d commit 22ecb2e
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/bvals/comms/boundary_communication.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,11 @@ TaskStatus SendBoundBufs(std::shared_ptr<MeshData<Real>> &md) {
return TaskStatus::complete;
}

bool can_write_combined =
pmesh->pcoalesced_comms->IsAvailableForWrite(md.get(), bound_type);
bool can_write_combined{true};
if (pmesh->do_coalesced_comms)
can_write_combined =
pmesh->pcoalesced_comms->IsAvailableForWrite(md.get(), bound_type);

if (other_communication_unfinished || !can_write_combined) {
return TaskStatus::incomplete;
}
Expand Down

0 comments on commit 22ecb2e

Please sign in to comment.