Skip to content

Commit

Permalink
fix params
Browse files Browse the repository at this point in the history
  • Loading branch information
carlnotsagan committed Dec 13, 2023
1 parent 1a77b2d commit 76e58d6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/radiation/cooling_function.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@ TaskStatus LightBulbCalcTau(MeshBlockData<Real> *rc) {
IndexRange jb = rc->GetBoundsJ(IndexDomain::interior);
IndexRange kb = rc->GetBoundsK(IndexDomain::interior);

auto &unit_conv = params.Get<phoebus::UnitConversions>("unit_conv");
auto &unit_conv =
pmb->packages.Get("phoebus")->Param<phoebus::UnitConversions>("unit_conv");
const Real density_conversion_factor = unit_conv.GetMassDensityCodeToCGS();

pmesh->packages.Get("phoebus")->Param<phoebus::UnitConversions>("unit_conv");
Expand Down

0 comments on commit 76e58d6

Please sign in to comment.