From e9063ff419f5678b9359590104c1a90284589092 Mon Sep 17 00:00:00 2001 From: Ben Ryan Date: Tue, 10 Dec 2024 12:02:44 -0700 Subject: [PATCH] working --- singularity-opac/neutrinos/neutrino_variant.hpp | 2 +- test/test_gray_opacities.cpp | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/singularity-opac/neutrinos/neutrino_variant.hpp b/singularity-opac/neutrinos/neutrino_variant.hpp index 5736077..5359005 100644 --- a/singularity-opac/neutrinos/neutrino_variant.hpp +++ b/singularity-opac/neutrinos/neutrino_variant.hpp @@ -76,7 +76,7 @@ class Variant { return mpark::visit( [=](const auto &opac) { using PC = typename std::decay_t::PC; - return singularity::GetRuntimePhysicalConstants(PC()); + return RuntimePhysicalConstants(PC()); }, opac_); } diff --git a/test/test_gray_opacities.cpp b/test/test_gray_opacities.cpp index aba0158..9d9a375 100644 --- a/test/test_gray_opacities.cpp +++ b/test/test_gray_opacities.cpp @@ -109,6 +109,9 @@ TEST_CASE("Gray neutrino opacities", "[GrayNeutrinos]") { neutrinos::Gray(1), time_unit, mass_unit, length_unit, temp_unit); auto funny_units = funny_units_host.GetOnDevice(); + auto noncgs_rpc = funny_units.GetRuntimePhysicalConstants(); + printf("ar: %e\n", noncgs_rpc.ar); + THEN("We can convert meaningfully into and out of funny units") { int n_wrong_h = 0; #ifdef PORTABILITY_STRATEGY_KOKKOS