From ec8346cc2700b072ca10bc5fd2cf52ead35fae35 Mon Sep 17 00:00:00 2001 From: Brandon Barker Date: Thu, 26 Oct 2023 05:00:01 +0000 Subject: [PATCH] change GetBoolean to GetOrAddBoolean incase fluid/mhd is not specified --- src/geometry/geometry.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/geometry/geometry.cpp b/src/geometry/geometry.cpp index 5f2138ff..7430edde 100644 --- a/src/geometry/geometry.cpp +++ b/src/geometry/geometry.cpp @@ -60,7 +60,7 @@ std::shared_ptr Initialize(ParameterInput *pin) { geometry->AddField(geometric_variables::node_coords, gcoord_node); // Reductions - const bool do_mhd = pin->GetBoolean("fluid", "mhd"); + const bool do_mhd = pin->GetorAddBoolean("fluid", "mhd", false); if (params.hasKey("xh") && do_mhd) { auto HstSum = parthenon::UserHistoryOperation::sum; using History::ReduceJetEnergyFlux;