Skip to content

Commit

Permalink
reversing one change, let's look how can we move last ApplyFloors int…
Browse files Browse the repository at this point in the history
…o sync region
  • Loading branch information
mari2895 committed Jan 20, 2024
1 parent 39b74aa commit ec38e1c
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/phoebus_driver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -526,12 +526,6 @@ TaskCollection PhoebusDriver::RungeKuttaStage(const int stage) {
auto fixup = tl.AddTask(fill_derived,
fixup::ConservedToPrimitiveFixup<MeshData<Real>>, sc1.get());
auto floors = tl.AddTask(radfixup, fixup::ApplyFloors<MeshData<Real>>, sc1.get());
if (rad_moments_active) {
// Only apply floors because MomentFluidSource already ensured that a sensible state
// was returned
auto floors =
tl.AddTask(gas_rad_int, fixup::ApplyFloors<MeshData<Real>>, sc1.get());
}
}

TaskRegion &async_region_2 = tc.AddRegion(num_independent_task_lists);
Expand Down Expand Up @@ -563,6 +557,12 @@ TaskCollection PhoebusDriver::RungeKuttaStage(const int stage) {
beta * dt, fluid_active);
gas_rad_int = gas_rad_int | impl_update;
}
if (rad_moments_active) {
// Only apply floors because MomentFluidSource already ensured that a sensible state
// was returned
auto floors =
tl.AddTask(gas_rad_int, fixup::ApplyFloors<MeshData<Real>>, sc1.get());
}
}

// Communicate (after applying stencil-based fixup)
Expand Down

0 comments on commit ec38e1c

Please sign in to comment.