From f312737e031649334d363b1896b89ca7d5a14464 Mon Sep 17 00:00:00 2001 From: Jonah Miller Date: Mon, 24 Feb 2025 17:45:15 -0700 Subject: [PATCH] is_indexable_v is wrong order... --- singularity-eos/base/indexable_types.hpp | 2 +- singularity-eos/eos/modifiers/zsplit_eos.hpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/singularity-eos/base/indexable_types.hpp b/singularity-eos/base/indexable_types.hpp index 007a795b3a..85da44bf14 100644 --- a/singularity-eos/base/indexable_types.hpp +++ b/singularity-eos/base/indexable_types.hpp @@ -28,7 +28,7 @@ namespace IndexerUtils { // natural number index depending on what is available template PORTABLE_FORCEINLINE_FUNCTION auto &Get(Indexer_t &&lambda, std::size_t idx = 0) { - if constexpr (variadic_utils::is_indexable_v) { + if constexpr (variadic_utils::is_indexable_v) { return lambda[T()]; } else { return lambda[idx]; diff --git a/singularity-eos/eos/modifiers/zsplit_eos.hpp b/singularity-eos/eos/modifiers/zsplit_eos.hpp index f5521e94a3..49b67db517 100644 --- a/singularity-eos/eos/modifiers/zsplit_eos.hpp +++ b/singularity-eos/eos/modifiers/zsplit_eos.hpp @@ -279,7 +279,7 @@ class ZSplit : public EosBase> { PORTABLE_THROW_OR_ABORT( "StellarCollapse: lambda must contain Ye and 1 space for caching.\n"); } - if constexpr (is_indexable_v) { + if constexpr (is_indexable_v) { return std::max(0.0, lambda[IndexableTypes::MeanIonizationState()]); } else { return std::max(0.0, lambda[t_.nlambda()]);