diff --git a/src/TNL/Matrices/ChunkedEllpack_impl.h b/src/TNL/Matrices/ChunkedEllpack_impl.h index 9d5a0ddee0f6e41b872155ca59feb7ee2e0803cf..00cee63bb26298526a3d8255775d24980f6b7d25 100644 --- a/src/TNL/Matrices/ChunkedEllpack_impl.h +++ b/src/TNL/Matrices/ChunkedEllpack_impl.h @@ -250,6 +250,13 @@ void ChunkedEllpack< Real, Device, Index >::setCompressedRowLengths( ConstCompre this->setSlice( rowLengths, sliceIndex, elementsToAllocation ); this->rowPointers.computePrefixSum(); } + +// std::cout << "\ngetRowLength after first if: " << std::endl; +// for( IndexType i = 0; i < rowLengths.getSize(); i++ ) +// { +// std::cout << getRowLength( i ) << std::endl; +// } +// std::cout << "\n"; if( std::is_same< Device, Devices::Cuda >::value ) { @@ -274,6 +281,7 @@ void ChunkedEllpack< Real, Device, Index >::setCompressedRowLengths( ConstCompre elementsToAllocation = hostMatrix.values.getSize(); } this->maxRowLength = rowLengths.max(); +// std::cout << "\nrowLengths.max() = " << rowLengths.max() << std::endl; Sparse< Real, Device, Index >::allocateMatrixElements( elementsToAllocation ); }