From 1a77b2df7a450abe756351e08a4b437a57e028a5 Mon Sep 17 00:00:00 2001 From: carlnotsagan Date: Wed, 13 Dec 2023 09:37:25 -0700 Subject: [PATCH] typo --- src/radiation/cooling_function.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/radiation/cooling_function.cpp b/src/radiation/cooling_function.cpp index fb01206e..58e5cec6 100644 --- a/src/radiation/cooling_function.cpp +++ b/src/radiation/cooling_function.cpp @@ -39,8 +39,9 @@ TaskStatus LightBulbCalcTau(MeshBlockData *rc) { IndexRange jb = rc->GetBoundsJ(IndexDomain::interior); IndexRange kb = rc->GetBoundsK(IndexDomain::interior); - auto &unit_conv = const Real density_conversion_factor = - unit_conv.GetMassDensityCodeToCGS(); + auto &unit_conv = params.Get("unit_conv"); + const Real density_conversion_factor = unit_conv.GetMassDensityCodeToCGS(); + pmesh->packages.Get("phoebus")->Param("unit_conv"); parthenon::par_for( DEFAULT_LOOP_PATTERN, "CalcTau", DevExecSpace(), kb.s, kb.e, jb.s, jb.e, ib.s, ib.e,