NeoPZ
Classes | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | Friends | List of all members

Refines geometrical mesh (all the elements) num times. More...

#include <pzstrmatrixgc.h>

Inheritance diagram for TPZStructMatrixGC:
[legend]
Collaboration diagram for TPZStructMatrixGC:
[legend]

Classes

struct  ThreadData
 Structure to manipulate thread to solve system equations. More...
 

Public Member Functions

 TPZStructMatrixGC ()
 
 TPZStructMatrixGC (TPZCompMesh *)
 
 TPZStructMatrixGC (TPZAutoPointer< TPZCompMesh > cmesh)
 
 TPZStructMatrixGC (const TPZStructMatrixGC &copy)
 
virtual ~TPZStructMatrixGC ()
 
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 TPZStructMatrixGCClone () 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 TPZEquationFilterEquationFilter ()
 access method for the equation filter More...
 
virtual int64_t NReducedEquations () const
 number of equations after applying the filter More...
 
virtual TPZCompMeshMesh () 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
 

Static Public Member Functions

static void OrderElement (TPZCompMesh *cmesh, TPZVec< int64_t > &ElementOrder)
 Find the order to assemble the elements. More...
 
static void ElementColoring (TPZCompMesh *cmesh, TPZVec< int64_t > &elSequence, TPZVec< int64_t > &elSequenceColor, TPZVec< int64_t > &elBlocked)
 Create blocks of elements to parallel processing. 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 Member Functions

virtual void Serial_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...
 
virtual void Serial_Assemble (TPZFMatrix< STATE > &rhs, TPZAutoPointer< TPZGuiInterface > guiInterface)
 Assemble the global right hand side. More...
 
virtual void MultiThread_Assemble (TPZFMatrix< STATE > &rhs, TPZAutoPointer< TPZGuiInterface > guiInterface)
 Assemble the global right hand side. 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

TPZVec< int64_t > fnextBlocked
 Vectors for mesh coloring. More...
 
TPZVec< int64_t > felSequenceColor
 
- Protected Attributes inherited from TPZStructMatrixBase
TPZCompMeshfMesh
 Pointer to the computational mesh from which the matrix will be generated. More...
 
TPZAutoPointer< TPZCompMeshfCompMesh
 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...
 

Friends

struct ThreadData
 

Detailed Description

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 34 of file pzstrmatrixgc.h.

Constructor & Destructor Documentation

◆ TPZStructMatrixGC() [1/4]

TPZStructMatrixGC::TPZStructMatrixGC ( )
inline

Definition at line 38 of file pzstrmatrixgc.h.

◆ TPZStructMatrixGC() [2/4]

TPZStructMatrixGC::TPZStructMatrixGC ( TPZCompMesh mesh)

◆ TPZStructMatrixGC() [3/4]

TPZStructMatrixGC::TPZStructMatrixGC ( TPZAutoPointer< TPZCompMesh cmesh)

◆ TPZStructMatrixGC() [4/4]

TPZStructMatrixGC::TPZStructMatrixGC ( const TPZStructMatrixGC copy)

Definition at line 67 of file pzstrmatrixgc.cpp.

References felSequenceColor, and fnextBlocked.

◆ ~TPZStructMatrixGC()

virtual TPZStructMatrixGC::~TPZStructMatrixGC ( )
inlinevirtual

Definition at line 46 of file pzstrmatrixgc.h.

References Create().

Member Function Documentation

◆ Assemble() [1/3]

void TPZStructMatrixGC::Assemble ( TPZMatrix< STATE > &  mat,
TPZFMatrix< STATE > &  rhs,
TPZAutoPointer< TPZGuiInterface guiInterface 
)
overridevirtual

◆ Assemble() [2/3]

virtual void TPZStructMatrixGC::Assemble ( TPZMatrix< STATE > &  mat,
TPZFMatrix< STATE > &  rhs,
TPZAutoPointer< TPZGuiInterface guiInterface,
unsigned  numthreads_assemble,
unsigned  numthreads_decompose 
)
inlinevirtual

◆ Assemble() [3/3]

void TPZStructMatrixGC::Assemble ( TPZFMatrix< STATE > &  rhs,
TPZAutoPointer< TPZGuiInterface guiInterface 
)
overridevirtual

◆ ClassId()

int TPZStructMatrixGC::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 1115 of file pzstrmatrixgc.cpp.

References TPZStructMatrixBase::ClassId(), and Hash().

Referenced by Assemble().

◆ Clone()

TPZStructMatrixGC * TPZStructMatrixGC::Clone ( )
overridevirtual

Implements TPZStructMatrixBase.

Definition at line 77 of file pzstrmatrixgc.cpp.

References ass_rhs, and ass_stiff.

Referenced by CreateAssemble().

◆ Create()

TPZMatrix< STATE > * TPZStructMatrixGC::Create ( )
overridevirtual

Implements TPZStructMatrixBase.

Definition at line 72 of file pzstrmatrixgc.cpp.

Referenced by CreateAssemble(), and ~TPZStructMatrixGC().

◆ CreateAssemble() [1/2]

virtual TPZMatrix<STATE>* TPZStructMatrixGC::CreateAssemble ( TPZFMatrix< STATE > &  rhs,
TPZAutoPointer< TPZGuiInterface guiInterface,
unsigned  numthreads_assemble,
unsigned  numthreads_decompose 
)
inlinevirtual

Definition at line 50 of file pzstrmatrixgc.h.

References Assemble(), Clone(), and TPZStructMatrixBase::SetNumThreads().

◆ CreateAssemble() [2/2]

TPZMatrix< STATE > * TPZStructMatrixGC::CreateAssemble ( TPZFMatrix< STATE > &  rhs,
TPZAutoPointer< TPZGuiInterface guiInterface 
)
overridevirtual

◆ ElementColoring()

void TPZStructMatrixGC::ElementColoring ( TPZCompMesh cmesh,
TPZVec< int64_t > &  elSequence,
TPZVec< int64_t > &  elSequenceColor,
TPZVec< int64_t > &  elBlocked 
)
static

◆ MultiThread_Assemble() [1/2]

void TPZStructMatrixGC::MultiThread_Assemble ( TPZFMatrix< STATE > &  rhs,
TPZAutoPointer< TPZGuiInterface guiInterface 
)
protectedvirtual

◆ MultiThread_Assemble() [2/2]

void TPZStructMatrixGC::MultiThread_Assemble ( TPZMatrix< STATE > &  mat,
TPZFMatrix< STATE > &  rhs,
TPZAutoPointer< TPZGuiInterface guiInterface 
)
protectedvirtual

◆ OrderElement()

void TPZStructMatrixGC::OrderElement ( TPZCompMesh cmesh,
TPZVec< int64_t > &  ElementOrder 
)
static

◆ Read()

void TPZStructMatrixGC::Read ( TPZStream buf,
void *  context 
)
overridevirtual

read objects from the stream

Reimplemented from TPZSavable.

Definition at line 1119 of file pzstrmatrixgc.cpp.

References TPZStructMatrixGC::ThreadData::felSequenceColor, TPZStructMatrixGC::ThreadData::fnextBlocked, TPZStructMatrixBase::Read(), and TPZStream::Read().

Referenced by Assemble().

◆ Serial_Assemble() [1/2]

void TPZStructMatrixGC::Serial_Assemble ( TPZMatrix< STATE > &  mat,
TPZFMatrix< STATE > &  rhs,
TPZAutoPointer< TPZGuiInterface guiInterface 
)
protectedvirtual

◆ Serial_Assemble() [2/2]

void TPZStructMatrixGC::Serial_Assemble ( TPZFMatrix< STATE > &  rhs,
TPZAutoPointer< TPZGuiInterface guiInterface 
)
protectedvirtual

◆ Write()

void TPZStructMatrixGC::Write ( TPZStream buf,
int  withclassid 
) const
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 1125 of file pzstrmatrixgc.cpp.

References TPZStructMatrixGC::ThreadData::felSequenceColor, TPZStructMatrixGC::ThreadData::fnextBlocked, TPZStream::Write(), and TPZStructMatrixBase::Write().

Referenced by Assemble().

Friends And Related Function Documentation

◆ ThreadData

friend struct ThreadData
friend

Definition at line 146 of file pzstrmatrixgc.h.

Member Data Documentation

◆ felSequenceColor

TPZVec<int64_t> TPZStructMatrixGC::felSequenceColor
protected

Definition at line 149 of file pzstrmatrixgc.h.

Referenced by MultiThread_Assemble(), and TPZStructMatrixGC().

◆ fnextBlocked

TPZVec<int64_t> TPZStructMatrixGC::fnextBlocked
protected

Vectors for mesh coloring.

Definition at line 149 of file pzstrmatrixgc.h.

Referenced by MultiThread_Assemble(), and TPZStructMatrixGC().


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