diff --git a/singularity-opac/neutrinos/mean_neutrino_variant.hpp b/singularity-opac/neutrinos/mean_neutrino_variant.hpp index b2d1835..0675fed 100644 --- a/singularity-opac/neutrinos/mean_neutrino_variant.hpp +++ b/singularity-opac/neutrinos/mean_neutrino_variant.hpp @@ -72,11 +72,7 @@ class MeanVariant { PORTABLE_INLINE_FUNCTION RuntimePhysicalConstants GetRuntimePhysicalConstants() const { return mpark::visit( - [=](const auto &opac) { - using PC = typename std::decay_t::PC; - return RuntimePhysicalConstants(PC()); - }, - opac_); + [](auto &opac) { return opac.GetRuntimePhysicalConstants(); }, opac_); } PORTABLE_INLINE_FUNCTION Real PlanckMeanAbsorptionCoefficient( diff --git a/singularity-opac/photons/non_cgs_photons.hpp b/singularity-opac/photons/non_cgs_photons.hpp index b239bf7..36857b0 100644 --- a/singularity-opac/photons/non_cgs_photons.hpp +++ b/singularity-opac/photons/non_cgs_photons.hpp @@ -222,11 +222,6 @@ class NonCGSUnits { return NoH * mass_unit_ / rho_unit_; } - // template - // PORTABLE_INLINE_FUNCTION T GetPhysicalConstants() const { - // return opac_.GetPhysicalConstants(); - //} - PORTABLE_INLINE_FUNCTION RuntimePhysicalConstants GetRuntimePhysicalConstants() const { return RuntimePhysicalConstants(PC(), time_unit_, mass_unit_, length_unit_,