From f9e464f5e225512c0d0ab6ee8a7a04c99175fcc7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Oberhuber?= <oberhuber.tomas@gmail.com> Date: Sat, 15 Dec 2018 20:36:00 +0100 Subject: [PATCH] Fixed syntax error in ChunkedEllpack. --- src/TNL/Matrices/ChunkedEllpack_impl.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/TNL/Matrices/ChunkedEllpack_impl.h b/src/TNL/Matrices/ChunkedEllpack_impl.h index e5844618b6..ff1dd0742f 100644 --- a/src/TNL/Matrices/ChunkedEllpack_impl.h +++ b/src/TNL/Matrices/ChunkedEllpack_impl.h @@ -198,7 +198,7 @@ bool ChunkedEllpack< Real, Device, Index >::setSlice( ConstCompressedRowLengthsV // will be zero and make the assertion fail ( https://stackoverflow.com/questions/33273359/in-c-using-the-ceil-a-division-is-not-working ). // To fix this, typecast them to ( float ), instead of ( RealType ) maxChunkInSlice = max( maxChunkInSlice, - roundUpDivision( rowLengths[ i ], this->rowToChunkMapping[ i ] ); + roundUpDivision( rowLengths[ i ], this->rowToChunkMapping[ i ] ) ); } TNL_ASSERT( maxChunkInSlice > 0, std::cerr << " maxChunkInSlice = " << maxChunkInSlice << std::endl ); -- GitLab