Skip to content

Commit

Permalink
fix: history failed when FMKS and not MHD
Browse files Browse the repository at this point in the history
  • Loading branch information
AstroBarker committed Oct 26, 2023
1 parent 1e24d97 commit 573f76d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/geometry/geometry.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,8 @@ std::shared_ptr<StateDescriptor> Initialize(ParameterInput *pin) {
geometry->AddField(geometric_variables::node_coords, gcoord_node);

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

0 comments on commit 573f76d

Please sign in to comment.