Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
lroberts36 committed Oct 22, 2024
1 parent 6bafb0a commit 07f62e2
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/bvals/comms/boundary_communication.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -216,9 +216,10 @@ TaskStatus ReceiveBoundBufs(std::shared_ptr<MeshData<Real>> &md) {
pmesh->pcombined_buffers->TryReceiveAny(pmesh, bound_type);

bool all_received = true;
std::for_each(
std::begin(cache.buf_vec), std::end(cache.buf_vec),
[&all_received](auto pbuf) { all_received = pbuf->TryReceiveLocal() && all_received; });
std::for_each(std::begin(cache.buf_vec), std::end(cache.buf_vec),
[&all_received](auto pbuf) {
all_received = pbuf->TryReceiveLocal() && all_received;
});

int ibound = 0;
if (Globals::sparse_config.enabled && all_received) {
Expand Down

0 comments on commit 07f62e2

Please sign in to comment.