From 26796828d774496f9202ccc89833c94ffbea26f3 Mon Sep 17 00:00:00 2001 From: Ben Ryan Date: Wed, 11 Dec 2024 13:47:19 -0700 Subject: [PATCH] Cleanup --- singularity-opac/neutrinos/mean_neutrino_variant.hpp | 6 +----- singularity-opac/photons/non_cgs_photons.hpp | 5 ----- 2 files changed, 1 insertion(+), 10 deletions(-) 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_,