Skip to content

Commit

Permalink
Fix constexpr query of static storage property.
Browse files Browse the repository at this point in the history
  • Loading branch information
jblueh committed Mar 5, 2024
1 parent 8408470 commit c6b039e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions include/codi/tapes/indices/reuseIndexManagerBase.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit c6b039e

Please sign in to comment.