Skip to content

Commit

Permalink
Merge branch 'main' into hlim/feature/ccz4
Browse files Browse the repository at this point in the history
  • Loading branch information
hlim88 committed Nov 7, 2023
2 parents 940d748 + 55e6c26 commit f9c89b1
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 f9c89b1

Please sign in to comment.