Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
brryan committed Dec 11, 2024
1 parent a5bd748 commit 2679682
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 10 deletions.
6 changes: 1 addition & 5 deletions singularity-opac/neutrinos/mean_neutrino_variant.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -72,11 +72,7 @@ class MeanVariant {
PORTABLE_INLINE_FUNCTION RuntimePhysicalConstants
GetRuntimePhysicalConstants() const {
return mpark::visit(
[=](const auto &opac) {
using PC = typename std::decay_t<decltype(opac)>::PC;
return RuntimePhysicalConstants(PC());
},
opac_);
[](auto &opac) { return opac.GetRuntimePhysicalConstants(); }, opac_);
}

PORTABLE_INLINE_FUNCTION Real PlanckMeanAbsorptionCoefficient(
Expand Down
5 changes: 0 additions & 5 deletions singularity-opac/photons/non_cgs_photons.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -222,11 +222,6 @@ class NonCGSUnits {
return NoH * mass_unit_ / rho_unit_;
}

// template <typename T>
// PORTABLE_INLINE_FUNCTION T GetPhysicalConstants() const {
// return opac_.GetPhysicalConstants();
//}

PORTABLE_INLINE_FUNCTION RuntimePhysicalConstants
GetRuntimePhysicalConstants() const {
return RuntimePhysicalConstants(PC(), time_unit_, mass_unit_, length_unit_,
Expand Down

0 comments on commit 2679682

Please sign in to comment.