Skip to content

Commit

Permalink
oh my god how did this compile without type return values for fromLog???
Browse files Browse the repository at this point in the history
  • Loading branch information
jonahm-LANL committed Nov 21, 2024
1 parent 918d137 commit 5e4ed81
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions singularity-opac/neutrinos/spiner_opac_neutrinos.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ class SpinerOpacity {

#ifdef SPINER_USE_HDF
SpinerOpacity(const std::string &filename,
LoadSource load_from = LoadSource::SP5)
const LoadSource load_from = LoadSource::SP5)
: filename_(filename.c_str()), memoryStatus_(impl::DataStatus::OnHost) {
if (load_from == LoadSource::SP5) {
LoadFromSP5_(filename);
Expand Down Expand Up @@ -532,10 +532,11 @@ class SpinerOpacity {
PORTABLE_INLINE_FUNCTION static Real toLog_(const Real x) {
return toLog_(x, 0);
}
PORTABLE_INLINE_FUNCTION static fromLog_(const Real lx, const Real offset) {
PORTABLE_INLINE_FUNCTION static Real fromLog_(const Real lx,
const Real offset) {
return std::pow(10., lx) - offset;
}
PORTABLE_INLINE_FUNCTION static fromLog_(const Real lx) {
PORTABLE_INLINE_FUNCTION static Real fromLog_(const Real lx) {
return fromLog_(lx, 0);
}
PORTABLE_INLINE_FUNCTION void toLogs_(const Real rho, const Real temp,
Expand Down

0 comments on commit 5e4ed81

Please sign in to comment.