Loading src/matrix/Makefile.am +1 −1 Original line number Diff line number Diff line Loading @@ -6,7 +6,7 @@ headers = \ tnlFullMatrix.h \ tnlBaseMatrix.h \ tnlMatrixSolver.h \ mPETSCMatrix.h \ tnlPETSCMatrix.h \ mPETSCSolver.h \ mSORSolver.h \ tnlCGSolver.h \ Loading src/matrix/mPETSCSolver.h +1 −1 Original line number Diff line number Diff line Loading @@ -92,7 +92,7 @@ template< typename T > class mPETSCSolver : public tnlMatrixSolver< T > #ifdef HAVE_PETSC assert( A. GetMatrixClass() == tnlMatrixClass :: petsc ); Vec petsc_x, petsc_b; mPETSCMatrix< T >* petsc_matrix = ( mPETSCMatrix< T >* ) & A; tnlPETSCMatrix< T >* petsc_matrix = ( tnlPETSCMatrix< T >* ) & A; Mat matrix; petsc_matrix -> GetData( matrix ); Loading src/matrix/mPETSCMatrix.h→src/matrix/tnlPETSCMatrix.h +8 −8 Original line number Diff line number Diff line /*************************************************************************** mPETSCMatrix.h - description tnlPETSCMatrix.h - description ------------------- begin : 2008/05/09 copyright : (C) 2008 by Tomá¹ Oberhuber Loading @@ -15,8 +15,8 @@ * * ***************************************************************************/ #ifndef mPETSCMatrixH #define mPETSCMatrixH #ifndef tnlPETSCMatrixH #define tnlPETSCMatrixH #ifdef HAVE_PETSC #include <petscmat.h> Loading @@ -28,7 +28,7 @@ struct Mat; #include <matrix/tnlBaseMatrix.h> //! Wrapper for the PETSC matrices template< typename T > class mPETSCMatrix : public tnlBaseMatrix< T > template< typename T > class tnlPETSCMatrix : public tnlBaseMatrix< T > { #ifdef HAVE_PETSC Loading @@ -39,9 +39,9 @@ template< typename T > class mPETSCMatrix : public tnlBaseMatrix< T > public: mPETSCMatrix(){}; tnlPETSCMatrix(){}; mPETSCMatrix( const long int _size, tnlPETSCMatrix( const long int _size, const long int row_size ) : size( _size ) { Loading @@ -56,7 +56,7 @@ template< typename T > class mPETSCMatrix : public tnlBaseMatrix< T > tnlString GetType() const { T t; return tnlString( "mPETSCMatrix< " ) + tnlString( GetParameterType( t ) ) + tnlString( " >" ); return tnlString( "tnlPETSCMatrix< " ) + tnlString( GetParameterType( t ) ) + tnlString( " >" ); }; const tnlString& GetMatrixClass() const Loading Loading @@ -136,7 +136,7 @@ template< typename T > class mPETSCMatrix : public tnlBaseMatrix< T > void MultiplyRow( long int row, const T& value ) {}; ~mPETSCMatrix() ~tnlPETSCMatrix() { #ifdef HAVE_PETSC MatDestroy( matrix ); Loading Loading
src/matrix/Makefile.am +1 −1 Original line number Diff line number Diff line Loading @@ -6,7 +6,7 @@ headers = \ tnlFullMatrix.h \ tnlBaseMatrix.h \ tnlMatrixSolver.h \ mPETSCMatrix.h \ tnlPETSCMatrix.h \ mPETSCSolver.h \ mSORSolver.h \ tnlCGSolver.h \ Loading
src/matrix/mPETSCSolver.h +1 −1 Original line number Diff line number Diff line Loading @@ -92,7 +92,7 @@ template< typename T > class mPETSCSolver : public tnlMatrixSolver< T > #ifdef HAVE_PETSC assert( A. GetMatrixClass() == tnlMatrixClass :: petsc ); Vec petsc_x, petsc_b; mPETSCMatrix< T >* petsc_matrix = ( mPETSCMatrix< T >* ) & A; tnlPETSCMatrix< T >* petsc_matrix = ( tnlPETSCMatrix< T >* ) & A; Mat matrix; petsc_matrix -> GetData( matrix ); Loading
src/matrix/mPETSCMatrix.h→src/matrix/tnlPETSCMatrix.h +8 −8 Original line number Diff line number Diff line /*************************************************************************** mPETSCMatrix.h - description tnlPETSCMatrix.h - description ------------------- begin : 2008/05/09 copyright : (C) 2008 by Tomá¹ Oberhuber Loading @@ -15,8 +15,8 @@ * * ***************************************************************************/ #ifndef mPETSCMatrixH #define mPETSCMatrixH #ifndef tnlPETSCMatrixH #define tnlPETSCMatrixH #ifdef HAVE_PETSC #include <petscmat.h> Loading @@ -28,7 +28,7 @@ struct Mat; #include <matrix/tnlBaseMatrix.h> //! Wrapper for the PETSC matrices template< typename T > class mPETSCMatrix : public tnlBaseMatrix< T > template< typename T > class tnlPETSCMatrix : public tnlBaseMatrix< T > { #ifdef HAVE_PETSC Loading @@ -39,9 +39,9 @@ template< typename T > class mPETSCMatrix : public tnlBaseMatrix< T > public: mPETSCMatrix(){}; tnlPETSCMatrix(){}; mPETSCMatrix( const long int _size, tnlPETSCMatrix( const long int _size, const long int row_size ) : size( _size ) { Loading @@ -56,7 +56,7 @@ template< typename T > class mPETSCMatrix : public tnlBaseMatrix< T > tnlString GetType() const { T t; return tnlString( "mPETSCMatrix< " ) + tnlString( GetParameterType( t ) ) + tnlString( " >" ); return tnlString( "tnlPETSCMatrix< " ) + tnlString( GetParameterType( t ) ) + tnlString( " >" ); }; const tnlString& GetMatrixClass() const Loading Loading @@ -136,7 +136,7 @@ template< typename T > class mPETSCMatrix : public tnlBaseMatrix< T > void MultiplyRow( long int row, const T& value ) {}; ~mPETSCMatrix() ~tnlPETSCMatrix() { #ifdef HAVE_PETSC MatDestroy( matrix ); Loading