Skip to content

Commit

Permalink
feat: check for hydro and mhd for history outputs
Browse files Browse the repository at this point in the history
  • Loading branch information
AstroBarker committed Oct 26, 2023
1 parent 2502cd8 commit 3ce6949
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/geometry/geometry.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,8 @@ std::shared_ptr<StateDescriptor> Initialize(ParameterInput *pin) {

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

0 comments on commit 3ce6949

Please sign in to comment.