From 9146f83c6cc37e56a945636c9c801e913c058420 Mon Sep 17 00:00:00 2001 From: mari2895 Date: Wed, 13 Mar 2024 13:16:44 -0400 Subject: [PATCH] check added --- src/analysis/history.hpp | 2 ++ src/fluid/fluid.cpp | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/analysis/history.hpp b/src/analysis/history.hpp index 87c456548..8dbfb164b 100644 --- a/src/analysis/history.hpp +++ b/src/analysis/history.hpp @@ -98,6 +98,8 @@ Real ReduceInGain(MeshData *md, int idx = 0) { static auto desc = MakePackDescriptor(resolved_pkgs.get()); auto v = desc.GetPack(md); + PARTHENON_REQUIRE_THROWS(v.ContainsHost(0, iv::GcovHeat(), iv::GcovCool()), + "Must be doing SN simulation"); const int nblocks = v.GetNBlocks(); Real result = 0.0; diff --git a/src/fluid/fluid.cpp b/src/fluid/fluid.cpp index 67cc8df09..cddff16fd 100644 --- a/src/fluid/fluid.cpp +++ b/src/fluid/fluid.cpp @@ -208,8 +208,8 @@ std::shared_ptr Initialize(ParameterInput *pin) { physics->AddField(p::entropy::name(), mprim_scalar); physics->AddField(p::cs::name(), mprim_scalar); physics->AddField(diag::ratio_divv_cs::name(), mprim_scalar); - // physics->AddField(diag::localization_function::name(), mprim_scalar); // (MG) - // currently not in use, turn on when needed. + // physics->AddField(diag::localization_function::name(), mprim_scalar); + // (MG) currently not in use, turn on when needed. physics->AddField(diag::entropy_z_0::name(), mprim_scalar); physics->AddField(p::gamma1::name(), mprim_scalar); if (ye) {