Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Inconsistent behavior between CPU and GPU for liebendorf deleptonization and cooling #184

Merged
merged 15 commits into from
Dec 13, 2023
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");
carlnotsagan marked this conversation as resolved.
Show resolved Hide resolved
}
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
Yurlungur marked this conversation as resolved.
Show resolved Hide resolved
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
Loading