From c6b039e5c9edb7675f90ffc725f9dd8e66571264 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Johannes=20Bl=C3=BChdorn?= Date: Tue, 5 Mar 2024 15:33:46 +0100 Subject: [PATCH] Fix constexpr query of static storage property. --- include/codi/tapes/indices/reuseIndexManagerBase.hpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/codi/tapes/indices/reuseIndexManagerBase.hpp b/include/codi/tapes/indices/reuseIndexManagerBase.hpp index bbd41c46..0c299fb7 100644 --- a/include/codi/tapes/indices/reuseIndexManagerBase.hpp +++ b/include/codi/tapes/indices/reuseIndexManagerBase.hpp @@ -242,9 +242,9 @@ namespace codi { double memoryStoredIndices = (double)storedIndices * (double)(sizeof(Index)); double memoryAllocatedIndices = (double)allocatedIndices * (double)(sizeof(Index)); - TapeValues::LocalReductionOperation constexpr operation = cast().NeedsStaticStorage - ? TapeValues::LocalReductionOperation::Max - : TapeValues::LocalReductionOperation::Sum; + TapeValues::LocalReductionOperation constexpr operation = Impl::NeedsStaticStorage + ? TapeValues::LocalReductionOperation::Max + : TapeValues::LocalReductionOperation::Sum; values.addUnsignedLongEntry("Indices stored", storedIndices, operation); values.addDoubleEntry("Memory used", memoryStoredIndices, operation, true, false);