From 6ddce075aee95d8512e3c9666492fab493f8cd67 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Jakub=20Klinkovsk=C3=BD?= <klinkjak@fjfi.cvut.cz>
Date: Wed, 19 Sep 2018 12:05:11 +0200
Subject: [PATCH] Fixed ILU0 to compile with nvcc 8.0

---
 src/TNL/Solvers/Linear/Preconditioners/ILU0.h | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)

diff --git a/src/TNL/Solvers/Linear/Preconditioners/ILU0.h b/src/TNL/Solvers/Linear/Preconditioners/ILU0.h
index 31e40b313a..b94d790526 100644
--- a/src/TNL/Solvers/Linear/Preconditioners/ILU0.h
+++ b/src/TNL/Solvers/Linear/Preconditioners/ILU0.h
@@ -152,19 +152,19 @@ protected:
    }
 
    // TODO: extend Matrices::copySparseMatrix accordingly
-   template< typename Matrix,
-             typename = typename std::enable_if< ! std::is_same< DeviceType, typename Matrix::DeviceType >::value >::type >
-   void copyMatrix( const Matrix& matrix )
+   template< typename MatrixT,
+             typename = typename std::enable_if< ! std::is_same< DeviceType, typename MatrixT::DeviceType >::value >::type >
+   void copyMatrix( const MatrixT& matrix )
    {
-      typename Matrix::CudaType A_tmp;
+      typename MatrixT::CudaType A_tmp;
       A_tmp = matrix;
       Matrices::copySparseMatrix( A, A_tmp );
    }
 
-   template< typename Matrix,
-             typename = typename std::enable_if< std::is_same< DeviceType, typename Matrix::DeviceType >::value >::type,
+   template< typename MatrixT,
+             typename = typename std::enable_if< std::is_same< DeviceType, typename MatrixT::DeviceType >::value >::type,
              typename = void >
-   void copyMatrix( const Matrix& matrix )
+   void copyMatrix( const MatrixT& matrix )
    {
       Matrices::copySparseMatrix( A, matrix );
    }
-- 
GitLab