Tpetra
: FixedHashTable
says it has one pair when default initialized - expecting zero
#13034
Labels
Tpetra
: FixedHashTable
says it has one pair when default initialized - expecting zero
#13034
Description
@tpetra
When default-initializing
Tpetra::Details::FixedHashTable
, thenumPairs
method returns 1. I think it should return 0.Here is a minimal example:
The culprit is:
Trilinos/packages/tpetra/core/src/Tpetra_Details_FixedHashTable_decl.hpp
Lines 324 to 331 in 1c10ee0
because when default initialized,
FixedHashTable::hasContiguousValues()
returnstrue
,lastContigKey_ = ::Kokkos::ArithTraits<int>::min()
andfirstContigKey_ = ::Kokkos::ArithTraits<int>::max()
.Note that I can workaround the problem by constructing the table with a default-initialized view of keys:
The text was updated successfully, but these errors were encountered: