Skip to content

Commit

Permalink
Merge pull request #55 from lanl/brryan/inline_runtime_constants
Browse files Browse the repository at this point in the history
Missing PORTABLE_INLINE_FUNCTIONs that caused compiler warnings
  • Loading branch information
Yurlungur authored Nov 1, 2024
2 parents e429a53 + bb9100f commit de8c652
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions singularity-opac/constants/constants.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,7 @@ struct PhysicalConstants {

struct RuntimePhysicalConstants {
template <typename T>
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),
Expand Down Expand Up @@ -229,6 +230,7 @@ struct RuntimePhysicalConstants {
};

template <typename T>
PORTABLE_INLINE_FUNCTION
RuntimePhysicalConstants GetRuntimePhysicalConstants(T phys_constants) {
return RuntimePhysicalConstants(phys_constants);
}
Expand Down

0 comments on commit de8c652

Please sign in to comment.