NeoPZ
|
Refines geometrical mesh (all the elements) num times. More...
#include <pzstrmatrixflowtbb.h>
Public Member Functions | |
TPZStructMatrixTBBFlow () | |
TPZStructMatrixTBBFlow (TPZCompMesh *) | |
TPZStructMatrixTBBFlow (TPZAutoPointer< TPZCompMesh > cmesh) | |
TPZStructMatrixTBBFlow (const TPZStructMatrixTBBFlow ©) | |
virtual | ~TPZStructMatrixTBBFlow () |
virtual TPZMatrix< STATE > * | Create () override |
virtual TPZMatrix< STATE > * | CreateAssemble (TPZFMatrix< STATE > &rhs, TPZAutoPointer< TPZGuiInterface > guiInterface, unsigned numthreads_assemble, unsigned numthreads_decompose) |
virtual TPZMatrix< STATE > * | CreateAssemble (TPZFMatrix< STATE > &rhs, TPZAutoPointer< TPZGuiInterface > guiInterface) override |
virtual TPZStructMatrixTBBFlow * | Clone () override |
virtual void | Assemble (TPZMatrix< STATE > &mat, TPZFMatrix< STATE > &rhs, TPZAutoPointer< TPZGuiInterface > guiInterface) override |
Assemble the global system of equations into the matrix which has already been created. More... | |
virtual void | Assemble (TPZMatrix< STATE > &mat, TPZFMatrix< STATE > &rhs, TPZAutoPointer< TPZGuiInterface > guiInterface, unsigned numthreads_assemble, unsigned numthreads_decompose) |
virtual void | Assemble (TPZFMatrix< STATE > &rhs, TPZAutoPointer< TPZGuiInterface > guiInterface) override |
Assemble the global right hand side. More... | |
int | ClassId () const override |
Define the class id associated with the class. More... | |
void | Read (TPZStream &buf, void *context) override |
read objects from the stream More... | |
void | Write (TPZStream &buf, int withclassid) const override |
Writes this object to the TPZStream buffer. Include the classid if withclassid = true. More... | |
Public Member Functions inherited from TPZStructMatrixBase | |
virtual void | SetMesh (TPZCompMesh *) |
virtual void | SetMesh (TPZAutoPointer< TPZCompMesh >) |
virtual void | FilterEquations (TPZVec< int64_t > &origindex, TPZVec< int64_t > &destindex) const |
Filter out the equations which are out of the range. More... | |
virtual void | SetMaterialIds (const std::set< int > &materialids) |
Set the set of material ids which will be considered when assembling the system. More... | |
virtual void | SetNumThreads (int n) |
virtual int | GetNumThreads () const |
virtual void | SetEquationRange (int64_t mineq, int64_t maxeq) |
virtual bool | HasRange () const |
Verify if a range has been specified. More... | |
virtual TPZEquationFilter & | EquationFilter () |
access method for the equation filter More... | |
virtual int64_t | NReducedEquations () const |
number of equations after applying the filter More... | |
virtual TPZCompMesh * | Mesh () const |
Access method for the mesh pointer. More... | |
virtual bool | ShouldCompute (int matid) const |
Establish whether the element should be computed. More... | |
virtual const std::set< int > & | MaterialIds () |
Returns the material ids. More... | |
int | ClassId () const override |
Define the class id associated with the class. More... | |
void | Read (TPZStream &buf, void *context) override |
read objects from the stream More... | |
void | Write (TPZStream &buf, int withclassid) const override |
Writes this object to the TPZStream buffer. Include the classid if withclassid = true. More... | |
virtual | ~TPZStructMatrixBase () |
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 | |
Protected Member Functions | |
virtual void | MultiThread_Assemble (TPZFMatrix< STATE > &rhs, TPZAutoPointer< TPZGuiInterface > guiInterface) |
Assemble the global system of equations into the matrix which has already been created. More... | |
virtual void | MultiThread_Assemble (TPZMatrix< STATE > &mat, TPZFMatrix< STATE > &rhs, TPZAutoPointer< TPZGuiInterface > guiInterface) |
Assemble the global system of equations into the matrix which has already been created. More... | |
Protected Member Functions inherited from TPZStructMatrixBase | |
TPZStructMatrixBase () | |
TPZStructMatrixBase (const TPZStructMatrixBase &) | |
TPZStructMatrixBase (TPZCompMesh *) | |
TPZStructMatrixBase (TPZAutoPointer< TPZCompMesh >) | |
Protected Attributes | |
TPZCompMesh * | fMesh |
Pointer to the computational mesh from which the matrix will be generated. More... | |
TPZAutoPointer< TPZCompMesh > | fCompMesh |
Autopointer control of the computational mesh. More... | |
TPZEquationFilter | fEquationFilter |
Object which will determine which equations will be assembled. More... | |
std::set< int > | fMaterialIds |
Set of material ids to be considered. It is a private attribute. More... | |
int | fNumThreads |
Number of threads in Assemble process. More... | |
Protected Attributes inherited from TPZStructMatrixBase | |
TPZCompMesh * | fMesh |
Pointer to the computational mesh from which the matrix will be generated. More... | |
TPZAutoPointer< TPZCompMesh > | fCompMesh |
Autopointer control of the computational mesh. More... | |
TPZEquationFilter | fEquationFilter |
Object which will determine which equations will be assembled. More... | |
std::set< int > | fMaterialIds |
Set of material ids to be considered. It is a private attribute. More... | |
int | fNumThreads |
Number of threads in Assemble process. More... | |
Additional Inherited Members | |
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) |
Refines geometrical mesh (all the elements) num times.
It is responsible for a interface among Matrix and Finite Element classes. Structural Matrix
Definition at line 40 of file pzstrmatrixflowtbb.h.
|
inline |
Definition at line 45 of file pzstrmatrixflowtbb.h.
References Create(), and ~TPZStructMatrixTBBFlow().
TPZStructMatrixTBBFlow::TPZStructMatrixTBBFlow | ( | TPZCompMesh * | mesh | ) |
Definition at line 51 of file pzstrmatrixflowtbb.cpp.
References fMesh, and TPZStructMatrixBase::SetNumThreads().
TPZStructMatrixTBBFlow::TPZStructMatrixTBBFlow | ( | TPZAutoPointer< TPZCompMesh > | cmesh | ) |
Definition at line 59 of file pzstrmatrixflowtbb.cpp.
References fMesh, and TPZStructMatrixBase::SetNumThreads().
TPZStructMatrixTBBFlow::TPZStructMatrixTBBFlow | ( | const TPZStructMatrixTBBFlow & | copy | ) |
Definition at line 67 of file pzstrmatrixflowtbb.cpp.
References fCompMesh, fMaterialIds, and fNumThreads.
|
virtual |
Definition at line 81 of file pzstrmatrixflowtbb.cpp.
Referenced by TPZStructMatrixTBBFlow().
|
overridevirtual |
Assemble the global system of equations into the matrix which has already been created.
Implements TPZStructMatrixBase.
Definition at line 103 of file pzstrmatrixflowtbb.cpp.
References TPZMatrix< TVar >::Cols(), DebugStop, fEquationFilter, TPZEquationFilter::IsActive(), MultiThread_Assemble(), TPZEquationFilter::NActiveEquations(), TPZMatrix< TVar >::Rows(), TPZEquationFilter::Scatter(), RunStatsTable::start(), and RunStatsTable::stop().
Referenced by Assemble(), and CreateAssemble().
|
inlinevirtual |
Definition at line 69 of file pzstrmatrixflowtbb.h.
References Assemble(), ClassId(), matrix, MultiThread_Assemble(), Read(), and Write().
|
overridevirtual |
Assemble the global right hand side.
Implements TPZStructMatrixBase.
Definition at line 124 of file pzstrmatrixflowtbb.cpp.
References DebugStop, fEquationFilter, TPZEquationFilter::IsActive(), MultiThread_Assemble(), TPZEquationFilter::NActiveEquations(), TPZEquationFilter::NEqExpand(), Norm(), TPZMatrix< TVar >::Rows(), TPZEquationFilter::Scatter(), RunStatsTable::start(), and RunStatsTable::stop().
|
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 186 of file pzstrmatrixflowtbb.cpp.
References TPZStructMatrixBase::ClassId(), and Hash().
Referenced by Assemble().
|
overridevirtual |
Implements TPZStructMatrixBase.
Definition at line 95 of file pzstrmatrixflowtbb.cpp.
References ass_rhs, and ass_stiff.
Referenced by CreateAssemble().
|
overridevirtual |
Implements TPZStructMatrixBase.
Definition at line 90 of file pzstrmatrixflowtbb.cpp.
Referenced by CreateAssemble(), and TPZStructMatrixTBBFlow().
|
inlinevirtual |
Definition at line 57 of file pzstrmatrixflowtbb.h.
References Assemble(), Clone(), and TPZStructMatrixBase::SetNumThreads().
|
overridevirtual |
Reimplemented from TPZStructMatrixBase.
Definition at line 145 of file pzstrmatrixflowtbb.cpp.
References Assemble(), TPZMatrix< TVar >::Cols(), Create(), fEquationFilter, LOGPZ_DEBUG, MAX, TPZEquationFilter::NEqExpand(), TPZMatrix< TVar >::Print(), and TPZFMatrix< TVar >::Redim().
|
protectedvirtual |
Assemble the global system of equations into the matrix which has already been created.
Assemble the global right hand side Assemble the global right hand side
Definition at line 177 of file pzstrmatrixflowtbb.cpp.
Referenced by Assemble().
|
protectedvirtual |
Assemble the global system of equations into the matrix which has already been created.
Definition at line 167 of file pzstrmatrixflowtbb.cpp.
|
overridevirtual |
read objects from the stream
Reimplemented from TPZSavable.
Definition at line 255 of file pzstrmatrixflowtbb.cpp.
References fCompMesh, fEquationFilter, fMaterialIds, fMesh, fNumThreads, TPZPersistenceManager::GetAutoPointer(), TPZPersistenceManager::GetInstance(), TPZEquationFilter::Read(), TPZStructMatrixBase::Read(), and TPZStream::Read().
Referenced by Assemble().
|
overridevirtual |
Writes this object to the TPZStream buffer. Include the classid if withclassid = true.
Writes this object to the TPZStream buffer. Include the classid if withclassid = true
Reimplemented from TPZSavable.
Definition at line 267 of file pzstrmatrixflowtbb.cpp.
References TPZElementMatrix::ApplyConstraints(), AssembleColor(), TPZCompEl::BuildConnectList(), TPZCompEl::CalcResidual(), TPZCompEl::CalcStiff(), CanAssemble(), TPZElementMatrix::ComputeDestinationIndices(), DebugStop, TPZElementMatrix::EF, TPZElementMatrix::EK, TPZCompMesh::ElementVec(), fCompMesh, TPZElementMatrix::fConstrMat, TPZElementMatrix::fDestinationIndex, fEquationFilter, TPZElementMatrix::fMat, fMaterialIds, fMesh, fNumThreads, TPZElementMatrix::fSourceIndex, TPZElementMatrix::HasDependency(), TPZCompEl::HasDependency(), LOGPZ_DEBUG, matrix, TPZStructMatrixBase::Mesh(), MinPassIndex(), TPZVec< T >::NElements(), RemoveEl(), TPZVec< T >::Resize(), TPZVec< T >::size(), TPZTimer::start(), WhoBlockedMe(), TPZEquationFilter::Write(), TPZStream::Write(), TPZStructMatrixBase::Write(), and TPZPersistenceManager::WritePointer().
Referenced by Assemble().
|
protected |
Autopointer control of the computational mesh.
Definition at line 192 of file pzstrmatrixflowtbb.h.
Referenced by Read(), TPZStructMatrixTBBFlow(), and Write().
|
protected |
Object which will determine which equations will be assembled.
Definition at line 194 of file pzstrmatrixflowtbb.h.
Referenced by Assemble(), CreateAssemble(), Read(), and Write().
|
protected |
Set of material ids to be considered. It is a private attribute.
Use ShouldCompute method to know if element must be assembled or not
Definition at line 204 of file pzstrmatrixflowtbb.h.
Referenced by Read(), TPZStructMatrixTBBFlow(), and Write().
|
protected |
Pointer to the computational mesh from which the matrix will be generated.
Definition at line 190 of file pzstrmatrixflowtbb.h.
Referenced by Read(), TPZStructMatrixTBBFlow(), and Write().
|
protected |
Number of threads in Assemble process.
Definition at line 207 of file pzstrmatrixflowtbb.h.
Referenced by Read(), TPZStructMatrixTBBFlow(), and Write().