From bb9100f69812227b8c1769c1b59e4f95d0bd57de Mon Sep 17 00:00:00 2001 From: Ben Ryan Date: Fri, 1 Nov 2024 15:27:40 -0600 Subject: [PATCH] Missing PORTABLE_INLINE_FUNCTIONs that caused compiler warnings --- singularity-opac/constants/constants.hpp | 2 ++ 1 file changed, 2 insertions(+) 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); }