Skip to content

Commit

Permalink
fix bool typo, compile fails
Browse files Browse the repository at this point in the history
  • Loading branch information
carlnotsagan committed Nov 7, 2023
1 parent 55e6c26 commit b1e83cd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/phoebus_driver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -685,7 +685,7 @@ TaskListStatus PhoebusDriver::RadiationPostStep() {
parthenon::AllReduce<bool> *pdo_gain_reducer;
bool do_lightbulb = rad->Param<bool>("do_lightbulb");
if (do_lightbulb) {
pdo_gain_reducer = rad->MutableParam<parthenon::AllReduce<bool>>("do_gain_reducer");
pdo_gain_reducer = rad->MutableParam<parthenon::AllReduce<bool>("do_gain_reducer");
}
TaskRegion &async_region = tc.AddRegion(num_independent_task_lists);
for (int ib = 0; ib < num_independent_task_lists; ib++) {
Expand Down
2 changes: 1 addition & 1 deletion src/radiation/cooling_function.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ TaskStatus CoolingFunctionCalculateFourForce(MeshBlockData<Real> *rc, const doub
singularity::StellarCollapse eos_sc =
eos.GetUnmodifiedObject().get<singularity::StellarCollapse>();
const parthenon::AllReduce<bool> *pdo_gain_reducer =
rad->MutableParam<parthenon::AllReduce<bool>>("do_gain_reducer");
rad->MutableParam<parthenon::AllReduce<bool>("do_gain_reducer");
const bool do_gain = pdo_gain_reducer->val;
parthenon::par_for(
DEFAULT_LOOP_PATTERN, "CoolingFunctionCalculateFourForce", DevExecSpace(), kb.s,
Expand Down

0 comments on commit b1e83cd

Please sign in to comment.