6 #ifndef TPZStructMatrixST_H 7 #define TPZStructMatrixST_H 11 #include <semaphore.h> 55 unsigned numthreads_assemble,
unsigned numthreads_decompose) {
65 unsigned numthreads_assemble,
unsigned numthreads_decompose) {
66 std::cout <<
"Nothing to do." << std::endl;
Contains declaration of the TPZSemaphore class which implements semaphore to threads.
void SetMaterialIds(const std::set< int > &materialids) override
Set the set of material ids which will be considered when assembling the system.
TPZEquationFilter fEquationFilter
Object which will determine which equations will be assembled.
int64_t NReducedEquations() const override
number of equations after applying the filter
std::set< int > fMaterialIds
Set of material ids to be considered. It is a private attribute.
virtual TPZMatrix< STATE > * CreateAssemble(TPZFMatrix< STATE > &rhs, TPZAutoPointer< TPZGuiInterface > guiInterface) override
Templated vector implementation.
Contains declaration of TPZGuiInterface class.
virtual ~TPZStructMatrixST()
virtual void FilterEquations(TPZVec< int64_t > &origindex, TPZVec< int64_t > &destindex) const override
Filter out the equations which are out of the range.
TPZCompMesh * fMesh
Pointer to the computational mesh from which the matrix will be generated.
void Write(TPZStream &buf, int withclassid) const override
Writes this object to the TPZStream buffer. Include the classid if withclassid = true.
bool ShouldCompute(int matid) const override
Establish whether the element should be computed.
It is responsible for a interface among Matrix and Finite Element classes. Structural Matrix...
virtual TPZMatrix< STATE > * CreateAssemble(TPZFMatrix< STATE > &rhs, TPZAutoPointer< TPZGuiInterface > guiInterface, unsigned numthreads_assemble, unsigned numthreads_decompose)
virtual TPZStructMatrixST * Clone() override
const std::set< int > & MaterialIds() override
Returns the material ids.
Contains declaration of TPZElementMatrix struct which associates an element matrix with the coeficien...
int64_t NActiveEquations() const
Retorna o numero de equacoes ativas do sistema.
virtual void ExecuteAssemble(TPZMatrix< STATE > *fGlobMatrix, TPZFMatrix< STATE > *fGlobRhs, TPZAutoPointer< TPZGuiInterface > guiInterface)
Contains TPZMatrixclass which implements full matrix (using column major representation).
TPZCompMesh * Mesh() const override
Access method for the mesh pointer.
virtual void SetNumThreads(int n)
virtual bool HasRange() const override
Verify if a range has been specified.
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.
Contains declaration of the TPZAutoPointer class which has Increment and Decrement actions are mutexe...
TPZAutoPointer< TPZCompMesh > fCompMesh
Autopointer control of the computational mesh.
virtual void Assemble(TPZMatrix< STATE > &mat, TPZFMatrix< STATE > &rhs, TPZAutoPointer< TPZGuiInterface > guiInterface, unsigned numthreads_assemble, unsigned numthreads_decompose)
int fNumThreads
Number of threads in Assemble process.
Contains declaration of TPZCompMesh class which is a repository for computational elements...
int ClassId() const override
Define the class id associated with the class.
Contains TPZMatrix<TVar>class, root matrix class.
void SetEquationRange(int64_t mineq, int64_t maxeq) override
Determine that the assembly refers to a range of equations.
void SetMinMaxEq(int64_t mineq, int64_t maxeq)
Define as equacoes ativas de [mineq, maxeq)
TPZEquationFilter & EquationFilter() override
access method for the equation filter
Implements computational mesh. Computational Mesh.
void Read(TPZStream &buf, void *context) override
read objects from the stream
virtual TPZMatrix< STATE > * Create() override
Defines the interface for saving and reading data. Persistency.
virtual void OnlyAssemble(TPZMatrix< STATE > *mat, TPZFMatrix< STATE > *rhs, TPZAutoPointer< TPZGuiInterface > guiInterface)
Assemble the global system of equations into the matrix which has already been created.
void Reset()
Reset method.