diff --git a/src/TNL/Matrices/SparseMatrix.hpp b/src/TNL/Matrices/SparseMatrix.hpp index cf4472922baa6a4b70d12611a181dd670f9f6aff..d3641e03069d0e87ad5214c68d86767b70815844 100644 --- a/src/TNL/Matrices/SparseMatrix.hpp +++ b/src/TNL/Matrices/SparseMatrix.hpp @@ -688,7 +688,7 @@ operator=( const RHSMatrix& matrix ) auto rowLocalIndexes_view = rowLocalIndexes.getView(); columns_view = paddingIndex; - /*if( std::is_same< DeviceType, RHSDeviceType >::value ) + if( std::is_same< DeviceType, RHSDeviceType >::value ) { const auto segments_view = this->segments.getView(); auto f = [=] __cuda_callable__ ( RHSIndexType rowIdx, RHSIndexType localIdx_, RHSIndexType columnIndex, const RHSRealType& value, bool& compute ) mutable { @@ -703,7 +703,7 @@ operator=( const RHSMatrix& matrix ) }; matrix.forAllRows( f ); } - else*/ + else { const IndexType maxRowLength = max( rowLengths ); const IndexType bufferRowsCount( 128 );