Skip to content

Commit

Permalink
don't start comms
Browse files Browse the repository at this point in the history
  • Loading branch information
lroberts36 committed Nov 13, 2024
1 parent 3b21bbc commit 8670107
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions example/fine_advection/advection_driver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -95,9 +95,6 @@ TaskCollection AdvectionDriver::MakeTaskCollection(BlockList_t &blocks, const in
auto &mc1 = pmesh->mesh_data.Add(stage_name[stage], mbase);
auto &mdudt = pmesh->mesh_data.Add("dUdt", mbase);

auto start_send = tl.AddTask(none, parthenon::StartReceiveBoundaryBuffers, mc1);
auto start_flxcor = tl.AddTask(none, parthenon::StartReceiveFluxCorrections, mc0);

// Make a sparse variable pack descriptors that can be used to build packs
// including some subset of the fields in this example. This will be passed
// to the Stokes update routines, so that they can internally create variable
Expand Down Expand Up @@ -146,9 +143,9 @@ TaskCollection AdvectionDriver::MakeTaskCollection(BlockList_t &blocks, const in
}
}

auto set_flx = parthenon::AddFluxCorrectionTasks(
start_flxcor | flx | flx_fine | vf_dep, tl, mc0, pmesh->multilevel);

//auto set_flx = parthenon::AddFluxCorrectionTasks(
// flx | flx_fine | vf_dep, tl, mc0, pmesh->multilevel);
auto set_flx = flx | flx_fine | vf_dep;
auto update = set_flx;
if (do_regular_advection) {
update = AddUpdateTasks(set_flx, tl, parthenon::CellLevel::same, TT::Cell, beta, dt,
Expand All @@ -170,7 +167,7 @@ TaskCollection AdvectionDriver::MakeTaskCollection(BlockList_t &blocks, const in
}

auto boundaries = parthenon::AddBoundaryExchangeTasks(
update | update_vec | update_fine | start_send, tl, mc1, pmesh->multilevel);
update | update_vec | update_fine, tl, mc1, pmesh->multilevel);

auto fill_derived =
tl.AddTask(boundaries, parthenon::Update::FillDerived<MeshData<Real>>, mc1.get());
Expand Down

0 comments on commit 8670107

Please sign in to comment.