From 573f76d884c30c15b3a0482ebd062fe3581edde7 Mon Sep 17 00:00:00 2001 From: Brandon Barker Date: Thu, 26 Oct 2023 04:03:57 +0000 Subject: [PATCH] fix: history failed when FMKS and not MHD --- src/geometry/geometry.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/geometry/geometry.cpp b/src/geometry/geometry.cpp index 434108c5..5f2138ff 100644 --- a/src/geometry/geometry.cpp +++ b/src/geometry/geometry.cpp @@ -60,8 +60,8 @@ std::shared_ptr 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;