diff --git a/external/parthenon b/external/parthenon index ab9d1671..5b6bb619 160000 --- a/external/parthenon +++ b/external/parthenon @@ -1 +1 @@ -Subproject commit ab9d16714d31e853d000a0757f3487bcb9804023 +Subproject commit 5b6bb61906f7c278f9724ee9f38e79dee8707098 diff --git a/src/hydro/hydro.cpp b/src/hydro/hydro.cpp index 95218748..d22dddef 100644 --- a/src/hydro/hydro.cpp +++ b/src/hydro/hydro.cpp @@ -143,6 +143,14 @@ TaskStatus AddUnsplitSources(MeshData *md, const SimTime &tm, const Real b if (hydro_pkg->Param("fluid") == Fluid::glmmhd) { hydro_pkg->Param("glmmhd_source")(md, beta_dt); } + const auto &enable_cooling = hydro_pkg->Param("enable_cooling"); + + if (enable_cooling == Cooling::tabular) { + const TabularCooling &tabular_cooling = + hydro_pkg->Param("tabular_cooling"); + + tabular_cooling.SrcTerm(md, beta_dt); + } if (ProblemSourceUnsplit != nullptr) { ProblemSourceUnsplit(md, tm, beta_dt); } @@ -153,14 +161,14 @@ TaskStatus AddUnsplitSources(MeshData *md, const SimTime &tm, const Real b TaskStatus AddSplitSourcesFirstOrder(MeshData *md, const SimTime &tm) { auto hydro_pkg = md->GetBlockData(0)->GetBlockPointer()->packages.Get("Hydro"); - const auto &enable_cooling = hydro_pkg->Param("enable_cooling"); + // const auto &enable_cooling = hydro_pkg->Param("enable_cooling"); - if (enable_cooling == Cooling::tabular) { - const TabularCooling &tabular_cooling = - hydro_pkg->Param("tabular_cooling"); + // if (enable_cooling == Cooling::tabular) { + // const TabularCooling &tabular_cooling = + // hydro_pkg->Param("tabular_cooling"); - tabular_cooling.SrcTerm(md, tm.dt); - } + // tabular_cooling.SrcTerm(md, tm.dt); + // } if (ProblemSourceFirstOrder != nullptr) { ProblemSourceFirstOrder(md, tm, tm.dt); }