Loading src/solvers/linear/krylov/tnlBICGStabSolver.h +2 −1 Original line number Diff line number Diff line Loading @@ -45,6 +45,7 @@ class tnlBICGStabSolver : public tnlObject, typedef tnlSharedPointer< MatrixType, DeviceType > MatrixPointer; // TODO: make this 'typedef tnlSharedPointer< const MatrixType, DeviceType > ConstMatrixPointer;' public: tnlBICGStabSolver(); Loading @@ -59,7 +60,7 @@ class tnlBICGStabSolver : public tnlObject, void setMatrix( MatrixPointer& matrix ); void setPreconditioner( const Preconditioner& preconditioner ); void setPreconditioner( const PreconditionerType& preconditioner ); #ifdef HAVE_NOT_CXX11 template< typename VectorPointer, Loading src/solvers/linear/krylov/tnlBICGStabSolver_impl.h +2 −1 Original line number Diff line number Diff line Loading @@ -31,6 +31,7 @@ RealType computeBICGStabNewP( Vector& p, template< typename Matrix, typename Preconditioner > tnlBICGStabSolver< Matrix, Preconditioner > :: tnlBICGStabSolver() : preconditioner( 0 ) { } Loading Loading @@ -72,7 +73,7 @@ void tnlBICGStabSolver< Matrix, Preconditioner >::setMatrix( MatrixPointer& matr template< typename Matrix, typename Preconditioner > void tnlBICGStabSolver< Matrix, Preconditioner > :: setPreconditioner( const Preconditioner& preconditioner ) void tnlBICGStabSolver< Matrix, Preconditioner > :: setPreconditioner( const PreconditionerType& preconditioner ) { this->preconditioner = &preconditioner; } Loading src/solvers/linear/krylov/tnlCGSolver.h +2 −2 Original line number Diff line number Diff line Loading @@ -58,7 +58,7 @@ class tnlCGSolver : public tnlObject, void setMatrix( MatrixPointer& matrix ); void setPreconditioner( const Preconditioner& preconditioner ); void setPreconditioner( const PreconditionerType& preconditioner ); #ifdef HAVE_NOT_CXX11 template< typename Vector, Loading @@ -79,7 +79,7 @@ class tnlCGSolver : public tnlObject, tnlVector< RealType, DeviceType, IndexType > r, new_r, p, Ap; MatrixPointer matrix; PreconditionerPointer preconditioner; const PreconditionerType* preconditioner; }; #include <solvers/linear/krylov/tnlCGSolver_impl.h> Loading src/solvers/linear/krylov/tnlCGSolver_impl.h +2 −1 Original line number Diff line number Diff line Loading @@ -21,6 +21,7 @@ template< typename Matrix, typename Preconditioner > tnlCGSolver< Matrix, Preconditioner > :: tnlCGSolver() : preconditioner( 0 ) { } Loading src/solvers/linear/krylov/tnlGMRESSolver.h +1 −1 Original line number Diff line number Diff line Loading @@ -60,7 +60,7 @@ class tnlGMRESSolver : public tnlObject, void setMatrix( MatrixPointer& matrix ); void setPreconditioner( const Preconditioner& preconditioner ); void setPreconditioner( const PreconditionerType& preconditioner ); #ifdef HAVE_NOT_CXX11 template< typename VectorPointer, Loading Loading
src/solvers/linear/krylov/tnlBICGStabSolver.h +2 −1 Original line number Diff line number Diff line Loading @@ -45,6 +45,7 @@ class tnlBICGStabSolver : public tnlObject, typedef tnlSharedPointer< MatrixType, DeviceType > MatrixPointer; // TODO: make this 'typedef tnlSharedPointer< const MatrixType, DeviceType > ConstMatrixPointer;' public: tnlBICGStabSolver(); Loading @@ -59,7 +60,7 @@ class tnlBICGStabSolver : public tnlObject, void setMatrix( MatrixPointer& matrix ); void setPreconditioner( const Preconditioner& preconditioner ); void setPreconditioner( const PreconditionerType& preconditioner ); #ifdef HAVE_NOT_CXX11 template< typename VectorPointer, Loading
src/solvers/linear/krylov/tnlBICGStabSolver_impl.h +2 −1 Original line number Diff line number Diff line Loading @@ -31,6 +31,7 @@ RealType computeBICGStabNewP( Vector& p, template< typename Matrix, typename Preconditioner > tnlBICGStabSolver< Matrix, Preconditioner > :: tnlBICGStabSolver() : preconditioner( 0 ) { } Loading Loading @@ -72,7 +73,7 @@ void tnlBICGStabSolver< Matrix, Preconditioner >::setMatrix( MatrixPointer& matr template< typename Matrix, typename Preconditioner > void tnlBICGStabSolver< Matrix, Preconditioner > :: setPreconditioner( const Preconditioner& preconditioner ) void tnlBICGStabSolver< Matrix, Preconditioner > :: setPreconditioner( const PreconditionerType& preconditioner ) { this->preconditioner = &preconditioner; } Loading
src/solvers/linear/krylov/tnlCGSolver.h +2 −2 Original line number Diff line number Diff line Loading @@ -58,7 +58,7 @@ class tnlCGSolver : public tnlObject, void setMatrix( MatrixPointer& matrix ); void setPreconditioner( const Preconditioner& preconditioner ); void setPreconditioner( const PreconditionerType& preconditioner ); #ifdef HAVE_NOT_CXX11 template< typename Vector, Loading @@ -79,7 +79,7 @@ class tnlCGSolver : public tnlObject, tnlVector< RealType, DeviceType, IndexType > r, new_r, p, Ap; MatrixPointer matrix; PreconditionerPointer preconditioner; const PreconditionerType* preconditioner; }; #include <solvers/linear/krylov/tnlCGSolver_impl.h> Loading
src/solvers/linear/krylov/tnlCGSolver_impl.h +2 −1 Original line number Diff line number Diff line Loading @@ -21,6 +21,7 @@ template< typename Matrix, typename Preconditioner > tnlCGSolver< Matrix, Preconditioner > :: tnlCGSolver() : preconditioner( 0 ) { } Loading
src/solvers/linear/krylov/tnlGMRESSolver.h +1 −1 Original line number Diff line number Diff line Loading @@ -60,7 +60,7 @@ class tnlGMRESSolver : public tnlObject, void setMatrix( MatrixPointer& matrix ); void setPreconditioner( const Preconditioner& preconditioner ); void setPreconditioner( const PreconditionerType& preconditioner ); #ifdef HAVE_NOT_CXX11 template< typename VectorPointer, Loading