Skip to content

Commit

Permalink
Missing PORTABLE_INLINE_FUNCTIONs that caused compiler warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
brryan committed Nov 1, 2024
1 parent e429a53 commit bb9100f
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 bb9100f

Please sign in to comment.