Skip to content

Commit

Permalink
fix a couple of things
Browse files Browse the repository at this point in the history
  • Loading branch information
lroberts36 committed Nov 19, 2024
1 parent 408ecb3 commit 06bd5d3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
5 changes: 2 additions & 3 deletions example/fine_advection/advection_driver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -143,9 +143,8 @@ TaskCollection AdvectionDriver::MakeTaskCollection(BlockList_t &blocks, const in
}
}

// auto set_flx = parthenon::AddFluxCorrectionTasks(
// flx | flx_fine | vf_dep, tl, mc0, pmesh->multilevel);
auto set_flx = flx | flx_fine | vf_dep;
auto set_flx = parthenon::AddFluxCorrectionTasks(flx | flx_fine | vf_dep, tl, mc0,
pmesh->multilevel);
auto update = set_flx;
if (do_regular_advection) {
update = AddUpdateTasks(set_flx, tl, parthenon::CellLevel::same, TT::Cell, beta, dt,
Expand Down
7 changes: 4 additions & 3 deletions src/bvals/comms/boundary_communication.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -185,9 +185,10 @@ TaskStatus StartReceiveBoundBufs(std::shared_ptr<MeshData<Real>> &md) {
if (cache.buf_vec.size() == 0)
InitializeBufferCache<bound_type>(md, &(pmesh->boundary_comm_map), &cache, ReceiveKey,
false);

// std::for_each(std::begin(cache.buf_vec), std::end(cache.buf_vec),
// [](auto pbuf) { pbuf->TryStartReceive(); });
if (!pmesh->do_coalesced_comms) {
std::for_each(std::begin(cache.buf_vec), std::end(cache.buf_vec),
[](auto pbuf) { pbuf->TryStartReceive(); });
}

return TaskStatus::complete;
}
Expand Down

0 comments on commit 06bd5d3

Please sign in to comment.