12 static LoggerPtr logger(Logger::getLogger(
"pz.strmatrix.TPZStructMatrixOR"));
13 static LoggerPtr loggerel(Logger::getLogger(
"pz.strmatrix.element"));
14 static LoggerPtr loggerel2(Logger::getLogger(
"pz.strmatrix.elementinterface"));
15 static LoggerPtr loggerelmat(Logger::getLogger(
"pz.strmatrix.elementmat"));
16 static LoggerPtr loggerCheck(Logger::getLogger(
"pz.strmatrix.checkconsistency"));
17 static LoggerPtr loggerGlobStiff(Logger::getLogger(
"pz.strmatrix.globalstiffness"));
64 int64_t cols =
MAX(1, rhs.
Cols());
69 if (loggerel->isDebugEnabled()) {
70 std::stringstream sout;
71 stiff->
Print(
"Stiffness matrix", sout);
72 rhs.
Print(
"Right hand side", sout);
90 if (logger->isDebugEnabled())
92 std::set<int>::const_iterator it;
93 std::stringstream sout;
94 sout <<
"setting input material ids ";
95 for(it=materialids.begin(); it!= materialids.end(); it++)
104 LOGPZ_WARN(logger,
"SetMaterialIds called without mesh")
110 for(iel=0; iel<nel; iel++)
115 if(!subcmesh)
continue;
119 LOGPZ_ERROR(logger,
"SetMaterialIds called for substructure without analysis object")
125 LOGPZ_WARN(logger,
"SetMaterialIds called for substructure without structural matrix")
133 return Hash(
"TPZStructMatrixBase");
int fNumThreads
Number of threads in Assemble process.
virtual TPZMatrix< STATE > * CreateAssemble(TPZFMatrix< STATE > &rhs, TPZAutoPointer< TPZGuiInterface > guiInterface)
int CheckConnectSeqNumberConsistency()
This method verifies if the sequence numbers of dependent connects and/or condensed connect are order...
virtual void SetMesh(TPZCompMesh *)
Contains TPZAnalysis class which implements the sequence of actions to perform a finite element analy...
Contains definitions to LOGPZ_DEBUG, LOGPZ_INFO, LOGPZ_WARN, LOGPZ_ERROR and LOGPZ_FATAL, and the implementation of the inline InitializePZLOG(string) function using log4cxx library or not. It must to be called out of "#ifdef LOG4CXX" scope.
int64_t NEquations()
This computes the number of equations associated with non-restrained nodes.
void Filter(TPZVec< int64_t > &orig, TPZVec< int64_t > &dest) const
void Write(TPZStream &buf, int withclassid) const override
Writes this object to the TPZStream buffer. Include the classid if withclassid = true.
TPZEquationFilter fEquationFilter
Object which will determine which equations will be assembled.
static TPZThreadPool & globalInstance()
int64_t NElements() const
Access method to query the number of elements of the vector.
Implements a chunk vector with free store administration. Utility.
#define LOGPZ_WARN(A, B)
Define log for warnings.
#define MAX(a, b)
Gets maxime value between a and b.
int ClassId() const override
Define the class id associated with the class.
static TPZSavable * GetInstance(const int64_t &objId)
void SetNumEq(const int64_t numEq)
virtual void Assemble(TPZMatrix< STATE > &stiffness, TPZFMatrix< STATE > &rhs, TPZAutoPointer< TPZGuiInterface > guiInterface)=0
TPZCompMesh * fMesh
Pointer to the computational mesh from which the matrix will be generated.
TPZAutoPointer< TPZStructMatrix > StructMatrix()
Returns a reference to the structural matrix.
static TPZAutoPointer< TPZSavable > GetAutoPointer(const int64_t &objId)
virtual void Write(const bool val)
Implements a group of computational elements as a mesh and an element. Computational Mesh...
#define DebugStop()
Returns a message to user put a breakpoint in.
virtual void SetNumThreads(int n)
#define LOGPZ_DEBUG(A, B)
Define log for debug info.
void Write(TPZStream &buf, int withclassid) const override
Writes this object to the TPZStream buffer. Include the classid if withclassid = true.
int64_t NEqExpand() const
Retorna o numero de equacoes do sistema original.
Contains declaration of TPZCheckMesh class which verifies the consistency of the datastructure of a T...
std::set< int > fMaterialIds
Set of material ids to be considered. It is a private attribute.
#define LOGPZ_ERROR(A, B)
Define log for errors (cout)
Contains declaration of TPZCompMesh class which is a repository for computational elements...
int Redim(const int64_t newRows, const int64_t newCols) override
Redimension a matrix and ZERO your elements.
TPZAutoPointer< TPZAnalysis > Analysis()
int32_t Hash(std::string str)
Contains declaration of TPZSubCompMesh class which implements a group of computational elements as a ...
virtual TPZMatrix< STATE > * Create()=0
virtual void SetMaterialIds(const std::set< int > &materialids)
Set the set of material ids which will be considered when assembling the system.
Implements computational mesh. Computational Mesh.
TPZAdmChunkVector< TPZCompEl * > & ElementVec()
Returns a reference to the element pointers vector.
int64_t Cols() const
Returns number of cols.
virtual void FilterEquations(TPZVec< int64_t > &origindex, TPZVec< int64_t > &destindex) const
Filter out the equations which are out of the range.
virtual void Print(std::ostream &out) const
Defines the interface for saving and reading data. Persistency.
void Read(TPZStream &buf, void *context) override
read objects from the stream
Defines the interface of a computational element. Computational Element.
static void WritePointer(const TPZSavable *obj, TPZStream *stream)
void Read(TPZStream &buf, void *context) override
read objects from the stream
TPZAutoPointer< TPZCompMesh > fCompMesh
Autopointer control of the computational mesh.
virtual void Read(bool &val)
This class verifies the consistency of the datastructure of a TPZCompMesh object. Computational Mesh...