Loading src/TNL/Solvers/Linear/Preconditioners/ILU0.h +7 −7 Original line number Original line Diff line number Diff line Loading @@ -152,19 +152,19 @@ protected: } } // TODO: extend Matrices::copySparseMatrix accordingly // TODO: extend Matrices::copySparseMatrix accordingly template< typename Matrix, template< typename MatrixT, typename = typename std::enable_if< ! std::is_same< DeviceType, typename Matrix::DeviceType >::value >::type > typename = typename std::enable_if< ! std::is_same< DeviceType, typename MatrixT::DeviceType >::value >::type > void copyMatrix( const Matrix& matrix ) void copyMatrix( const MatrixT& matrix ) { { typename Matrix::CudaType A_tmp; typename MatrixT::CudaType A_tmp; A_tmp = matrix; A_tmp = matrix; Matrices::copySparseMatrix( A, A_tmp ); Matrices::copySparseMatrix( A, A_tmp ); } } template< typename Matrix, template< typename MatrixT, typename = typename std::enable_if< std::is_same< DeviceType, typename Matrix::DeviceType >::value >::type, typename = typename std::enable_if< std::is_same< DeviceType, typename MatrixT::DeviceType >::value >::type, typename = void > typename = void > void copyMatrix( const Matrix& matrix ) void copyMatrix( const MatrixT& matrix ) { { Matrices::copySparseMatrix( A, matrix ); Matrices::copySparseMatrix( A, matrix ); } } Loading Loading
src/TNL/Solvers/Linear/Preconditioners/ILU0.h +7 −7 Original line number Original line Diff line number Diff line Loading @@ -152,19 +152,19 @@ protected: } } // TODO: extend Matrices::copySparseMatrix accordingly // TODO: extend Matrices::copySparseMatrix accordingly template< typename Matrix, template< typename MatrixT, typename = typename std::enable_if< ! std::is_same< DeviceType, typename Matrix::DeviceType >::value >::type > typename = typename std::enable_if< ! std::is_same< DeviceType, typename MatrixT::DeviceType >::value >::type > void copyMatrix( const Matrix& matrix ) void copyMatrix( const MatrixT& matrix ) { { typename Matrix::CudaType A_tmp; typename MatrixT::CudaType A_tmp; A_tmp = matrix; A_tmp = matrix; Matrices::copySparseMatrix( A, A_tmp ); Matrices::copySparseMatrix( A, A_tmp ); } } template< typename Matrix, template< typename MatrixT, typename = typename std::enable_if< std::is_same< DeviceType, typename Matrix::DeviceType >::value >::type, typename = typename std::enable_if< std::is_same< DeviceType, typename MatrixT::DeviceType >::value >::type, typename = void > typename = void > void copyMatrix( const Matrix& matrix ) void copyMatrix( const MatrixT& matrix ) { { Matrices::copySparseMatrix( A, matrix ); Matrices::copySparseMatrix( A, matrix ); } } Loading