diff --git a/singularity-opac/constants/constants.hpp b/singularity-opac/constants/constants.hpp index b99fe95..d08bb4a 100644 --- a/singularity-opac/constants/constants.hpp +++ b/singularity-opac/constants/constants.hpp @@ -196,6 +196,7 @@ struct PhysicalConstants { struct RuntimePhysicalConstants { template + PORTABLE_INLINE_FUNCTION RuntimePhysicalConstants(T pc) : na(pc.na), alpha(pc.alpha), h(pc.h), hbar(pc.hbar), kb(pc.kb), r_gas(pc.r_gas), qe(pc.qe), c(pc.c), g_newt(pc.g_newt), @@ -229,6 +230,7 @@ struct RuntimePhysicalConstants { }; template +PORTABLE_INLINE_FUNCTION RuntimePhysicalConstants GetRuntimePhysicalConstants(T phys_constants) { return RuntimePhysicalConstants(phys_constants); }