Skip to content

Commit

Permalink
Merge pull request #183 from lanl/blb/history_fix
Browse files Browse the repository at this point in the history
Small history fix for FMKS without MHD
  • Loading branch information
Yurlungur authored Nov 2, 2023
2 parents 1e24d97 + 3ce6949 commit 55e6c26
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 @@ -60,8 +60,9 @@ std::shared_ptr<StateDescriptor> Initialize(ParameterInput *pin) {
geometry->AddField(geometric_variables::node_coords, gcoord_node);

// Reductions
const bool do_mhd = pin->GetOrAddBoolean("fluid", "mhd", false);
const bool do_hydro = pin->GetBoolean("physics", "hydro");
if (params.hasKey("xh") && do_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 55e6c26

Please sign in to comment.