![]() |
NeoPZ
|
Responsible for storing arrays of equations (mostly in a decomposed form). Frontal. More...
#include <TPZStackEqnStorage.h>
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 TPZSavable * | CreateInstance (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... | |
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.
| 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< TVar >::~TPZStackEqnStorage | ( | ) |
Simple Destructor.
Definition at line 71 of file TPZStackEqnStorage.cpp.
| TPZStackEqnStorage< TVar >::TPZStackEqnStorage | ( | ) |
Simple Constructor.
Definition at line 60 of file TPZStackEqnStorage.cpp.
|
inline |
Definition at line 41 of file TPZStackEqnStorage.h.
References TPZStackEqnStorage< TVar >::AddEqnArray(), TPZStackEqnStorage< TVar >::Backward(), TPZStackEqnStorage< TVar >::ClassId(), test::f, TPZStackEqnStorage< TVar >::Forward(), TPZStackEqnStorage< TVar >::GetStorage(), TPZStackEqnStorage< TVar >::OpenGeneric(), TPZStackEqnStorage< TVar >::Print(), TPZStackEqnStorage< TVar >::ReadBlockPositions(), TPZStackEqnStorage< TVar >::Reset(), and TPZStackEqnStorage< TVar >::SetBlockSize().
| void TPZStackEqnStorage< TVar >::AddEqnArray | ( | TPZEqnArray< TVar > * | EqnArray | ) |
Adds an EqnArray to EqnStack object.
| *EqnArray | Pointer to EqnArray to be added to the Stack |
Definition at line 54 of file TPZStackEqnStorage.cpp.
Referenced by TPZStackEqnStorage< TVar >::TPZStackEqnStorage().
| void TPZStackEqnStorage< TVar >::Backward | ( | TPZFMatrix< TVar > & | f, |
| DecomposeType | dec | ||
| ) | const |
Executes a Backward substitution Stack object.
| f | Matrix to apply Backward substitution on |
| dec | Decomposition 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().
|
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().
| void TPZStackEqnStorage< TVar >::FinishWriting | ( | ) |
It closes the opened binary file.
Definition at line 91 of file TPZStackEqnStorage.cpp.
| void TPZStackEqnStorage< TVar >::Forward | ( | TPZFMatrix< TVar > & | f, |
| DecomposeType | dec | ||
| ) | const |
Executes a Forward substitution Stack object.
| f | Matrix to apply Forward substitution on |
| dec | Decomposition 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().
| std::string TPZStackEqnStorage< TVar >::GetStorage | ( | ) |
Name of Storage.
Definition at line 93 of file TPZStackEqnStorage.cpp.
Referenced by TPZStackEqnStorage< TVar >::TPZStackEqnStorage().
|
static |
Static main for testing.
Definition at line 76 of file TPZStackEqnStorage.cpp.
| 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().
| void TPZStackEqnStorage< TVar >::Print | ( | const char * | name, |
| std::ostream & | out | ||
| ) | const |
Prints TPZEqnStorage data.
| name | file title to print to |
| out | object type file |
Definition at line 21 of file TPZStackEqnStorage.cpp.
Referenced by TPZStackEqnStorage< TVar >::TPZStackEqnStorage().
| 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().
| void TPZStackEqnStorage< TVar >::ReOpen | ( | ) |
Method to make this class "template compatible" with the file equation storage.
Definition at line 18 of file TPZStackEqnStorage.cpp.
| void TPZStackEqnStorage< TVar >::Reset | ( | ) |
Resets data structure.
Definition at line 28 of file TPZStackEqnStorage.cpp.
Referenced by TPZStackEqnStorage< TVar >::TPZStackEqnStorage().
|
private |
Sets the block size to be used.
Definition at line 15 of file TPZStackEqnStorage.cpp.
Referenced by TPZStackEqnStorage< TVar >::TPZStackEqnStorage().
| void TPZStackEqnStorage< TVar >::Zero | ( | ) |
Reinitialize the object.
Definition at line 65 of file TPZStackEqnStorage.cpp.
References TPZStackEqnStorage< TVar >::fEqnStack, and TPZManVector< T, NumExtAlloc >::Resize().
|
private |
Defines a stack of EqnArrays.
Definition at line 89 of file TPZStackEqnStorage.h.
Referenced by TPZStackEqnStorage< TVar >::Zero().
1.8.13