1 #ifndef TPZStructMatrixGCTP_H 2 #define TPZStructMatrixGCTP_H 21 #include <boost/atomic.hpp> 47 unsigned numthreads_assemble,
unsigned numthreads_decompose) {
60 unsigned numthreads_assemble,
unsigned numthreads_decompose) {
61 std::cout <<
"Nothing to do." << std::endl;
Contains declaration of the TPZSemaphore class which implements semaphore to threads.
virtual ~TPZStructMatrixGCTP()
void Read(TPZStream &buf, void *context) override
read objects from the stream
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.
Templated vector implementation.
Contains declaration of TPZGuiInterface class.
static void OrderElement(TPZCompMesh *cmesh, TPZVec< int64_t > &ElementOrder)
Find the order to assemble the elements.
void Write(TPZStream &buf, int withclassid) const override
Writes this object to the TPZStream buffer. Include the classid if withclassid = true.
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.
const std::set< int > & MaterialIds() override
Returns the material ids.
bool ShouldCompute(int matid) const override
Establish whether the element should be computed.
virtual void Assemble(TPZMatrix< STATE > &mat, TPZFMatrix< STATE > &rhs, TPZAutoPointer< TPZGuiInterface > guiInterface, unsigned numthreads_assemble, unsigned numthreads_decompose)
Contains declaration of TPZElementMatrix struct which associates an element matrix with the coeficien...
int ClassId() const override
Define the class id associated with the class.
virtual TPZMatrix< STATE > * Create() override
Contains TPZMatrixclass which implements full matrix (using column major representation).
virtual void SetNumThreads(int n)
It is responsible for a interface between Matrix and Finite Element classes. Structural Matrix This c...
virtual TPZMatrix< STATE > * CreateAssemble(TPZFMatrix< STATE > &rhs, TPZAutoPointer< TPZGuiInterface > guiInterface, unsigned numthreads_assemble, unsigned numthreads_decompose)
Contains declaration of the TPZAutoPointer class which has Increment and Decrement actions are mutexe...
std::set< int > fMaterialIds
Set of material ids to be considered. It is a private attribute.
Contains declaration of TPZCompMesh class which is a repository for computational elements...
virtual void MultiThread_Assemble(TPZFMatrix< STATE > &rhs, TPZAutoPointer< TPZGuiInterface > guiInterface)
Assemble the global right hand side.
Contains TPZMatrix<TVar>class, root matrix class.
Implements computational mesh. Computational Mesh.
virtual TPZStructMatrixGCTP * Clone() override
Defines the interface for saving and reading data. Persistency.
TPZVec< int64_t > fElementColors
TPZManVector< int64_t > fElementOrder