NeoPZ
Public Member Functions | List of all members
TPZCopySolve< TVar > Class Template Reference

To solve clones of the given matrix. Solver. More...

#include <TPZCopySolve.h>

Inheritance diagram for TPZCopySolve< TVar >:
[legend]
Collaboration diagram for TPZCopySolve< TVar >:
[legend]

Public Member Functions

 TPZCopySolve (TPZMatrix< TVar > *mat)
 
 TPZCopySolve (const TPZCopySolve &other)
 
void Solve (const TPZFMatrix< TVar > &F, TPZFMatrix< TVar > &result, TPZFMatrix< TVar > *residual)
 Solves the system of linear equations stored in current matrix
As this class implements only a copy operation, it just copies u to F;. More...
 
TPZSolver< TVar > * Clone () const
 Clones the current object returning a pointer of type TPZSolver. More...
 
- Public Member Functions inherited from TPZMatrixSolver< TVar >
 TPZMatrixSolver (TPZAutoPointer< TPZMatrix< TVar > > Refmat)
 Constructor with initialization parameter. More...
 
 TPZMatrixSolver ()
 
 TPZMatrixSolver (const TPZMatrixSolver< TVar > &Source)
 Copy constructor. More...
 
virtual ~TPZMatrixSolver ()
 Destructor. More...
 
virtual void SetMatrix (TPZAutoPointer< TPZMatrix< TVar > > Refmat)
 Sets a matrix to the current object. More...
 
virtual void UpdateFrom (TPZAutoPointer< TPZMatrix< TVar > > matrix) override
 Updates the values of the current matrix based on the values of the matrix. More...
 
void ResetMatrix () override
 Resets current object. More...
 
virtual void SetReferenceMatrix (TPZAutoPointer< TPZMatrix< TVar > > matrix)
 This method gives a preconditioner to share a matrix with the referring solver object. More...
 
TPZAutoPointer< TPZMatrix< TVar > > Matrix () const
 Returns a pointer to TPZMatrix<> More...
 
void ReallocMatrix ()
 
void ShareMatrix (TPZMatrixSolver< TVar > &other)
 Shares the current matrix with another object of same type. More...
 
virtual MSolver Solver ()
 
int ClassId () const override
 Saveable specific methods. More...
 
void Write (TPZStream &buf, int withclassid) const override
 Writes this object to the TPZStream buffer. Include the classid if withclassid = true. More...
 
void Read (TPZStream &buf, void *context) override
 read objects from the stream More...
 
- Public Member Functions inherited from TPZSolver< TVar >
virtual void Decompose ()
 Decompose the system of equations if a direct solver is used. More...
 
virtual ~TPZSolver ()
 Destructor. More...
 
- Public Member Functions inherited from TPZSavable
 TPZSavable ()
 
virtual ~TPZSavable ()
 
virtual std::list< std::map< std::string, uint64_t > > VersionHistory () const
 
virtual std::pair< std::string, uint64_t > Version () const
 
virtual bool Compare (TPZSavable *copy, bool override=false)
 Compares the object for identity with the object pointed to, eventually copy the object. More...
 
virtual bool Compare (TPZSavable *copy, bool override=false) const
 Compares the object for identity with the object pointed to, eventually copy the object. More...
 
- Public Member Functions inherited from TPZRegisterClassId
template<typename T >
 TPZRegisterClassId (int(T::*)() const)
 
 TPZRegisterClassId ()=default
 

Additional Inherited Members

- Public Types inherited from TPZMatrixSolver< TVar >
enum  MSolver {
  ENoSolver, EJacobi, ESOR, ESSOR,
  ECG, EGMRES, EBICGSTAB, EDirect,
  EMultiply
}
 Defines a series of solvers available in PZ. More...
 
- Static Public Member Functions inherited from TPZSavable
static std::set< TPZRestoreClassBase * > & RestoreClassSet ()
 This static function guarantees that the gMap object is available when needed. More...
 
static std::map< int, TPZRestore_t > & ClassIdMap ()
 This static function guarantees that the gMap object is available when needed. More...
 
static std::pair< std::string, uint64_t > NeoPZVersion ()
 
static void Register (TPZRestoreClassBase *restore)
 
static void RegisterClassId (int classid, TPZRestore_t fun)
 
static TPZSavableCreateInstance (const int &classId)
 
- Protected Attributes inherited from TPZMatrixSolver< TVar >
TPZAutoPointer< TPZMatrix< TVar > > fReferenceMatrix
 Reference matrix used to update the current matrix. More...
 
TPZFMatrix< TVar > fScratch
 Manipulation matrix. More...
 

Detailed Description

template<class TVar>
class TPZCopySolve< TVar >

To solve clones of the given matrix. Solver.

Definition at line 18 of file TPZCopySolve.h.

Constructor & Destructor Documentation

◆ TPZCopySolve() [1/2]

template<class TVar >
TPZCopySolve< TVar >::TPZCopySolve ( TPZMatrix< TVar > *  mat)
inline

Definition at line 22 of file TPZCopySolve.h.

Referenced by TPZCopySolve< TVar >::Clone().

◆ TPZCopySolve() [2/2]

template<class TVar >
TPZCopySolve< TVar >::TPZCopySolve ( const TPZCopySolve< TVar > &  other)
inline

Definition at line 26 of file TPZCopySolve.h.

Member Function Documentation

◆ Clone()

template<class TVar >
TPZSolver<TVar>* TPZCopySolve< TVar >::Clone ( ) const
inlinevirtual

Clones the current object returning a pointer of type TPZSolver.

Implements TPZSolver< TVar >.

Definition at line 43 of file TPZCopySolve.h.

References TPZCopySolve< TVar >::TPZCopySolve().

◆ Solve()

template<class TVar >
void TPZCopySolve< TVar >::Solve ( const TPZFMatrix< TVar > &  F,
TPZFMatrix< TVar > &  result,
TPZFMatrix< TVar > *  residual 
)
inlinevirtual

Solves the system of linear equations stored in current matrix
As this class implements only a copy operation, it just copies u to F;.

Parameters
Fcontains Force vector
resultcontains the solution
residual[out] residual computed

Implements TPZSolver< TVar >.

Definition at line 37 of file TPZCopySolve.h.


The documentation for this class was generated from the following file: