Skip to content

Commit

Permalink
change GetBoolean to GetOrAddBoolean incase fluid/mhd is not specified
Browse files Browse the repository at this point in the history
  • Loading branch information
AstroBarker committed Oct 26, 2023
1 parent 573f76d commit ec8346c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/geometry/geometry.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ std::shared_ptr<StateDescriptor> Initialize(ParameterInput *pin) {
geometry->AddField(geometric_variables::node_coords, gcoord_node);

// Reductions
const bool do_mhd = pin->GetBoolean("fluid", "mhd");
const bool do_mhd = pin->GetorAddBoolean("fluid", "mhd", false);
if (params.hasKey("xh") && do_mhd) {
auto HstSum = parthenon::UserHistoryOperation::sum;
using History::ReduceJetEnergyFlux;
Expand Down

0 comments on commit ec8346c

Please sign in to comment.