54 std::cout << __PRETTY_FUNCTION__ <<
" called\n";
62 return Hash(
"TPZSolver") ^ ClassIdOrHash<TVar>() << 1;
66 #define TPZMATRIXSOLVER_ID 28291005; 90 ENoSolver, EJacobi, ESOR,
ESSOR, ECG, EGMRES, EBICGSTAB, EDirect, EMultiply
125 if(this->fContainer) this->fContainer->UpdateFrom(
matrix);
134 fReferenceMatrix =
matrix;
144 fContainer.ReallocForNuma(0);
virtual void UpdateFrom(TPZAutoPointer< TPZMatrix< TVar > > matrix)
Updates the values of the current matrix based on the values of the matrix.
virtual void UpdateFrom(TPZAutoPointer< TPZMatrix< TVar > > matrix) override
Updates the values of the current matrix based on the values of the matrix.
Defines a abstract class of solvers which will be used by matrix classes. Solver. ...
virtual void ResetMatrix()
This method will reset the matrix associated with the solver.
Defines a class of matrix solvers. Solver.
virtual void Solve(const TPZFMatrix< TVar > &F, TPZFMatrix< TVar > &result, TPZFMatrix< TVar > *residual=0)=0
Solves the system of linear equations.
virtual void Read(TPZStream &buf, void *context)
read objects from the stream
TPZAutoPointer< TPZMatrix< TVar > > fReferenceMatrix
Reference matrix used to update the current matrix.
TPZSkylMatrix< REAL > matrix
MSolver
Defines a series of solvers available in PZ.
Contains TPZMatrixclass which implements full matrix (using column major representation).
virtual void SetMatrix(TPZAutoPointer< TPZMatrix< TVar > > Refmat)
Sets a matrix to the current object.
virtual void SetReferenceMatrix(TPZAutoPointer< TPZMatrix< TVar > > matrix)
This method gives a preconditioner to share a matrix with the referring solver object.
virtual void Write(TPZStream &buf, int withclassid) const
Writes this object to the TPZStream buffer. Include the classid if withclassid = true.
TPZFMatrix< TVar > fScratch
Manipulation matrix.
Full matrix class. Matrix.
int ClassId() const override
Define the class id associated with the class.
int32_t Hash(std::string str)
virtual TPZSolver * Clone() const =0
Clones the current object returning a pointer of type TPZSolver.
virtual ~TPZSolver()
Destructor.
TPZAutoPointer< TPZMatrix< TVar > > Matrix() const
Returns a pointer to TPZMatrix<>
int ClassId() const override
Saveable specific methods.
Defines the interface for saving and reading data. Persistency.
virtual void Decompose()
Decompose the system of equations if a direct solver is used.
This class defines the interface to save and restore objects from TPZStream objects. Persistency.
TPZAutoPointer< TPZMatrix< TVar > > fContainer
Container classes.
Root matrix class (abstract). Matrix.
This class implements a reference counter mechanism to administer a dynamically allocated object...