NeoPZ
Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | List of all members
TPZStackEqnStorage< TVar > Class Template Reference

Responsible for storing arrays of equations (mostly in a decomposed form). Frontal. More...

#include <TPZStackEqnStorage.h>

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

Public Member Functions

void ReOpen ()
 Method to make this class "template compatible" with the file equation storage. More...
 
void Zero ()
 Reinitialize the object. More...
 
void FinishWriting ()
 It closes the opened binary file. More...
 
 TPZStackEqnStorage (char option, const char *name)
 Only to make both possible templates similar in terms of methods and constructors. More...
 
 ~TPZStackEqnStorage ()
 Simple Destructor. More...
 
 TPZStackEqnStorage ()
 Simple Constructor. More...
 
 TPZStackEqnStorage (const TPZStackEqnStorage &cp)
 
void AddEqnArray (TPZEqnArray< TVar > *EqnArray)
 Adds an EqnArray to EqnStack object. More...
 
void Print (const char *name, std::ostream &out) const
 Prints TPZEqnStorage data. More...
 
void Reset ()
 Resets data structure. More...
 
void Backward (TPZFMatrix< TVar > &f, DecomposeType dec) const
 Executes a Backward substitution Stack object. More...
 
void Forward (TPZFMatrix< TVar > &f, DecomposeType dec) const
 Executes a Forward substitution Stack object. More...
 
void OpenGeneric (char option, const char *name)
 Only to make both possible templates similar in terms of methods and constructors. More...
 
void ReadBlockPositions ()
 Only to make both possible templates similar in terms of methods and constructors. More...
 
std::string GetStorage ()
 Name of Storage. More...
 
int ClassId () const override
 Define the class id associated with the class. 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 void Write (TPZStream &buf, int withclassid) const
 Writes this object to the TPZStream buffer. Include the classid if withclassid = true. More...
 
virtual void Read (TPZStream &buf, void *context)
 read objects from the stream More...
 
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
 

Static Public Member Functions

static void main ()
 Static main for testing. 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)
 

Private Member Functions

void SetBlockSize ()
 Sets the block size to be used. More...
 

Private Attributes

TPZStack< TPZEqnArray< TVar > > fEqnStack
 Defines a stack of EqnArrays. More...
 

Detailed Description

template<class TVar>
class TPZStackEqnStorage< TVar >

Responsible for storing arrays of equations (mostly in a decomposed form). Frontal.

It has methods for operating over a set of equations The arrays of equations are in the form of a Stack of EqnArrays

Definition at line 386 of file TPZFrontMatrix.cpp.

Constructor & Destructor Documentation

◆ TPZStackEqnStorage() [1/3]

template<class TVar >
TPZStackEqnStorage< TVar >::TPZStackEqnStorage ( char  option,
const char *  name 
)

Only to make both possible templates similar in terms of methods and constructors.

Definition at line 81 of file TPZStackEqnStorage.cpp.

◆ ~TPZStackEqnStorage()

template<class TVar >
TPZStackEqnStorage< TVar >::~TPZStackEqnStorage ( )

Simple Destructor.

Definition at line 71 of file TPZStackEqnStorage.cpp.

◆ TPZStackEqnStorage() [2/3]

template<class TVar >
TPZStackEqnStorage< TVar >::TPZStackEqnStorage ( )

Simple Constructor.

Definition at line 60 of file TPZStackEqnStorage.cpp.

◆ TPZStackEqnStorage() [3/3]

template<class TVar >
TPZStackEqnStorage< TVar >::TPZStackEqnStorage ( const TPZStackEqnStorage< TVar > &  cp)
inline

Member Function Documentation

◆ AddEqnArray()

template<class TVar >
void TPZStackEqnStorage< TVar >::AddEqnArray ( TPZEqnArray< TVar > *  EqnArray)

Adds an EqnArray to EqnStack object.

Parameters
*EqnArrayPointer to EqnArray to be added to the Stack

Definition at line 54 of file TPZStackEqnStorage.cpp.

Referenced by TPZStackEqnStorage< TVar >::TPZStackEqnStorage().

◆ Backward()

template<class TVar >
void TPZStackEqnStorage< TVar >::Backward ( TPZFMatrix< TVar > &  f,
DecomposeType  dec 
) const

Executes a Backward substitution Stack object.

Parameters
fMatrix to apply Backward substitution on
decDecomposition type of f, depends on what decomposition method was used to decompose f

Definition at line 33 of file TPZStackEqnStorage.cpp.

Referenced by TPZStackEqnStorage< TVar >::TPZStackEqnStorage().

◆ ClassId()

template<class TVar >
int TPZStackEqnStorage< TVar >::ClassId ( ) const
overridevirtual

Define the class id associated with the class.

This id has to be unique for all classes A non unique id is flagged at the startup of the program

Implements TPZSavable.

Definition at line 98 of file TPZStackEqnStorage.h.

References Hash().

Referenced by TPZStackEqnStorage< TVar >::TPZStackEqnStorage().

◆ FinishWriting()

template<class TVar >
void TPZStackEqnStorage< TVar >::FinishWriting ( )

It closes the opened binary file.

Definition at line 91 of file TPZStackEqnStorage.cpp.

◆ Forward()

template<class TVar >
void TPZStackEqnStorage< TVar >::Forward ( TPZFMatrix< TVar > &  f,
DecomposeType  dec 
) const

Executes a Forward substitution Stack object.

Parameters
fMatrix to apply Forward substitution on
decDecomposition type of f. Depends on what decomposition method was used to decompose f

Definition at line 43 of file TPZStackEqnStorage.cpp.

Referenced by TPZStackEqnStorage< TVar >::TPZStackEqnStorage().

◆ GetStorage()

template<class TVar >
std::string TPZStackEqnStorage< TVar >::GetStorage ( )

Name of Storage.

Definition at line 93 of file TPZStackEqnStorage.cpp.

Referenced by TPZStackEqnStorage< TVar >::TPZStackEqnStorage().

◆ main()

template<class TVar >
void TPZStackEqnStorage< TVar >::main ( )
static

Static main for testing.

Definition at line 76 of file TPZStackEqnStorage.cpp.

◆ OpenGeneric()

template<class TVar >
void TPZStackEqnStorage< TVar >::OpenGeneric ( char  option,
const char *  name 
)

Only to make both possible templates similar in terms of methods and constructors.

Definition at line 87 of file TPZStackEqnStorage.cpp.

Referenced by TPZStackEqnStorage< TVar >::TPZStackEqnStorage().

◆ Print()

template<class TVar >
void TPZStackEqnStorage< TVar >::Print ( const char *  name,
std::ostream &  out 
) const

Prints TPZEqnStorage data.

Parameters
namefile title to print to
outobject type file

Definition at line 21 of file TPZStackEqnStorage.cpp.

Referenced by TPZStackEqnStorage< TVar >::TPZStackEqnStorage().

◆ ReadBlockPositions()

template<class TVar >
void TPZStackEqnStorage< TVar >::ReadBlockPositions ( )

Only to make both possible templates similar in terms of methods and constructors.

Definition at line 89 of file TPZStackEqnStorage.cpp.

Referenced by TPZStackEqnStorage< TVar >::TPZStackEqnStorage().

◆ ReOpen()

template<class TVar >
void TPZStackEqnStorage< TVar >::ReOpen ( )

Method to make this class "template compatible" with the file equation storage.

Definition at line 18 of file TPZStackEqnStorage.cpp.

◆ Reset()

template<class TVar >
void TPZStackEqnStorage< TVar >::Reset ( )

Resets data structure.

Definition at line 28 of file TPZStackEqnStorage.cpp.

Referenced by TPZStackEqnStorage< TVar >::TPZStackEqnStorage().

◆ SetBlockSize()

template<class TVar >
void TPZStackEqnStorage< TVar >::SetBlockSize ( )
private

Sets the block size to be used.

Definition at line 15 of file TPZStackEqnStorage.cpp.

Referenced by TPZStackEqnStorage< TVar >::TPZStackEqnStorage().

◆ Zero()

template<class TVar >
void TPZStackEqnStorage< TVar >::Zero ( )

Reinitialize the object.

Definition at line 65 of file TPZStackEqnStorage.cpp.

References TPZStackEqnStorage< TVar >::fEqnStack, and TPZManVector< T, NumExtAlloc >::Resize().

Member Data Documentation

◆ fEqnStack

template<class TVar >
TPZStack<TPZEqnArray<TVar> > TPZStackEqnStorage< TVar >::fEqnStack
private

Defines a stack of EqnArrays.

Definition at line 89 of file TPZStackEqnStorage.h.

Referenced by TPZStackEqnStorage< TVar >::Zero().


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