Loading src/TNL/Solvers/Linear/BICGStab.h +3 −3 Original line number Diff line number Diff line Loading @@ -40,7 +40,7 @@ class BICGStab : public Object, typedef Matrix MatrixType; typedef Preconditioner PreconditionerType; typedef SharedPointer< const MatrixType, DeviceType, true > MatrixPointer; typedef SharedPointer< const PreconditionerType, DeviceType, true > PreconditionerPointer; BICGStab(); Loading @@ -54,7 +54,7 @@ class BICGStab : public Object, void setMatrix( MatrixPointer matrix ); void setPreconditioner( const PreconditionerType& preconditioner ); void setPreconditioner( PreconditionerPointer preconditioner ); template< typename Vector, typename ResidueGetter = LinearResidueGetter< Matrix, Vector > > Loading @@ -69,7 +69,7 @@ class BICGStab : public Object, Containers::Vector< RealType, DeviceType, IndexType > r, r_ast, r_new, p, s, Ap, As, M_tmp; MatrixPointer matrix; const PreconditionerType* preconditioner; PreconditionerPointer preconditioner; }; } // namespace Linear Loading src/TNL/Solvers/Linear/BICGStab_impl.h +3 −4 Original line number Diff line number Diff line Loading @@ -25,7 +25,6 @@ RealType computeBICGStabNewP( Vector& p, template< typename Matrix, typename Preconditioner > BICGStab< Matrix, Preconditioner > :: BICGStab() : preconditioner( 0 ) { } Loading Loading @@ -67,9 +66,9 @@ void BICGStab< Matrix, Preconditioner >::setMatrix( MatrixPointer matrix ) template< typename Matrix, typename Preconditioner > void BICGStab< Matrix, Preconditioner > :: setPreconditioner( const PreconditionerType& preconditioner ) void BICGStab< Matrix, Preconditioner > :: setPreconditioner( PreconditionerPointer preconditioner ) { this->preconditioner = &preconditioner; this->preconditioner = preconditioner; } template< typename Matrix, Loading src/TNL/Solvers/Linear/CG.h +2 −2 Original line number Diff line number Diff line Loading @@ -54,7 +54,7 @@ class CG : public Object, void setMatrix( MatrixPointer matrix ); void setPreconditioner( const PreconditionerType& preconditioner ); void setPreconditioner( PreconditionerPointer preconditioner ); template< typename Vector, typename ResidueGetter = LinearResidueGetter< Matrix, Vector > > Loading @@ -69,7 +69,7 @@ class CG : public Object, Containers::Vector< RealType, DeviceType, IndexType > r, new_r, p, Ap; MatrixPointer matrix; const PreconditionerType* preconditioner; PreconditionerPointer preconditioner; }; } // namespace Linear Loading src/TNL/Solvers/Linear/CG_impl.h +2 −3 Original line number Diff line number Diff line Loading @@ -17,7 +17,6 @@ namespace Linear { template< typename Matrix, typename Preconditioner > CG< Matrix, Preconditioner > :: CG() : preconditioner( 0 ) { } Loading Loading @@ -59,9 +58,9 @@ void CG< Matrix, Preconditioner >::setMatrix( MatrixPointer matrix ) template< typename Matrix, typename Preconditioner > void CG< Matrix, Preconditioner > :: setPreconditioner( const Preconditioner& preconditioner ) void CG< Matrix, Preconditioner > :: setPreconditioner( PreconditionerPointer preconditioner ) { this->preconditioner = &preconditioner; this->preconditioner = preconditioner; } template< typename Matrix, Loading src/TNL/Solvers/Linear/GMRES.h +3 −2 Original line number Diff line number Diff line Loading @@ -39,6 +39,7 @@ class GMRES : public Object, typedef Matrix MatrixType; typedef Preconditioner PreconditionerType; typedef SharedPointer< const MatrixType, DeviceType, true > MatrixPointer; typedef SharedPointer< const PreconditionerType, DeviceType, true > PreconditionerPointer; GMRES(); Loading @@ -54,7 +55,7 @@ class GMRES : public Object, void setMatrix( MatrixPointer matrix ); void setPreconditioner( const PreconditionerType& preconditioner ); void setPreconditioner( PreconditionerPointer preconditioner ); template< typename Vector, typename ResidueGetter = LinearResidueGetter< Matrix, Vector > > Loading Loading @@ -91,7 +92,7 @@ class GMRES : public Object, IndexType size, restarting; MatrixPointer matrix; const PreconditionerType* preconditioner; PreconditionerPointer preconditioner; }; } // namespace Linear Loading Loading
src/TNL/Solvers/Linear/BICGStab.h +3 −3 Original line number Diff line number Diff line Loading @@ -40,7 +40,7 @@ class BICGStab : public Object, typedef Matrix MatrixType; typedef Preconditioner PreconditionerType; typedef SharedPointer< const MatrixType, DeviceType, true > MatrixPointer; typedef SharedPointer< const PreconditionerType, DeviceType, true > PreconditionerPointer; BICGStab(); Loading @@ -54,7 +54,7 @@ class BICGStab : public Object, void setMatrix( MatrixPointer matrix ); void setPreconditioner( const PreconditionerType& preconditioner ); void setPreconditioner( PreconditionerPointer preconditioner ); template< typename Vector, typename ResidueGetter = LinearResidueGetter< Matrix, Vector > > Loading @@ -69,7 +69,7 @@ class BICGStab : public Object, Containers::Vector< RealType, DeviceType, IndexType > r, r_ast, r_new, p, s, Ap, As, M_tmp; MatrixPointer matrix; const PreconditionerType* preconditioner; PreconditionerPointer preconditioner; }; } // namespace Linear Loading
src/TNL/Solvers/Linear/BICGStab_impl.h +3 −4 Original line number Diff line number Diff line Loading @@ -25,7 +25,6 @@ RealType computeBICGStabNewP( Vector& p, template< typename Matrix, typename Preconditioner > BICGStab< Matrix, Preconditioner > :: BICGStab() : preconditioner( 0 ) { } Loading Loading @@ -67,9 +66,9 @@ void BICGStab< Matrix, Preconditioner >::setMatrix( MatrixPointer matrix ) template< typename Matrix, typename Preconditioner > void BICGStab< Matrix, Preconditioner > :: setPreconditioner( const PreconditionerType& preconditioner ) void BICGStab< Matrix, Preconditioner > :: setPreconditioner( PreconditionerPointer preconditioner ) { this->preconditioner = &preconditioner; this->preconditioner = preconditioner; } template< typename Matrix, Loading
src/TNL/Solvers/Linear/CG.h +2 −2 Original line number Diff line number Diff line Loading @@ -54,7 +54,7 @@ class CG : public Object, void setMatrix( MatrixPointer matrix ); void setPreconditioner( const PreconditionerType& preconditioner ); void setPreconditioner( PreconditionerPointer preconditioner ); template< typename Vector, typename ResidueGetter = LinearResidueGetter< Matrix, Vector > > Loading @@ -69,7 +69,7 @@ class CG : public Object, Containers::Vector< RealType, DeviceType, IndexType > r, new_r, p, Ap; MatrixPointer matrix; const PreconditionerType* preconditioner; PreconditionerPointer preconditioner; }; } // namespace Linear Loading
src/TNL/Solvers/Linear/CG_impl.h +2 −3 Original line number Diff line number Diff line Loading @@ -17,7 +17,6 @@ namespace Linear { template< typename Matrix, typename Preconditioner > CG< Matrix, Preconditioner > :: CG() : preconditioner( 0 ) { } Loading Loading @@ -59,9 +58,9 @@ void CG< Matrix, Preconditioner >::setMatrix( MatrixPointer matrix ) template< typename Matrix, typename Preconditioner > void CG< Matrix, Preconditioner > :: setPreconditioner( const Preconditioner& preconditioner ) void CG< Matrix, Preconditioner > :: setPreconditioner( PreconditionerPointer preconditioner ) { this->preconditioner = &preconditioner; this->preconditioner = preconditioner; } template< typename Matrix, Loading
src/TNL/Solvers/Linear/GMRES.h +3 −2 Original line number Diff line number Diff line Loading @@ -39,6 +39,7 @@ class GMRES : public Object, typedef Matrix MatrixType; typedef Preconditioner PreconditionerType; typedef SharedPointer< const MatrixType, DeviceType, true > MatrixPointer; typedef SharedPointer< const PreconditionerType, DeviceType, true > PreconditionerPointer; GMRES(); Loading @@ -54,7 +55,7 @@ class GMRES : public Object, void setMatrix( MatrixPointer matrix ); void setPreconditioner( const PreconditionerType& preconditioner ); void setPreconditioner( PreconditionerPointer preconditioner ); template< typename Vector, typename ResidueGetter = LinearResidueGetter< Matrix, Vector > > Loading Loading @@ -91,7 +92,7 @@ class GMRES : public Object, IndexType size, restarting; MatrixPointer matrix; const PreconditionerType* preconditioner; PreconditionerPointer preconditioner; }; } // namespace Linear Loading