11 out << __PRETTY_FUNCTION__ <<
"\n";
13 out <<
"ReferredMesh = " << this->
ReferredMesh() <<
"\n";
49 for(iel=0; iel<nel; iel++)
72 if(celindex <0)
return 0;
82 const int64_t nel2ref = WhichRefine.
NElements();
85 for(int64_t i = 0; i < nel2ref; i++){
97 for ( int64_t iref = 0; iref < nel2ref; iref++ )
int64_t NElements() const
Number of computational elements allocated.
TPZGeoMesh * Reference() const
Returns a pointer to the geometrical mesh associated.
int ClassId() const override
Returns the unique identifier for reading/writing objects to streams.
TPZCompEl * ReferredEl(int64_t index)
TPZAdmChunkVector< TPZCompEl * > fElementVec
List of pointers to elements.
void Read(TPZStream &buf, void *context) override
Read the element data from a stream.
void Write(TPZStream &buf, int withclassid) const override
Save the element data to a stream.
void LoadReferred(TPZCompMesh *mesh)
Contains declaration of TPZCompEl class which defines the interface of a computational element...
int ClassId() const override
Returns the unique identifier for reading/writing objects to streams.
static TPZSavable * GetInstance(const int64_t &objId)
void LoadReferences()
Map this grid in the geometric grid.
virtual void Resize(const int64_t newsize, const T &object)
Resizes the vector object reallocating the necessary storage, copying the existing objects to the new...
Contains declaration of TPZMesh class which defines a geometrical mesh and contains a corresponding l...
virtual void Divide(int64_t index, TPZVec< int64_t > &subindex, int interpolate=0)
Divide the computational element. If interpolate = 1, the solution is interpolated to the sub element...
virtual void Write(const bool val)
Defines the behaviour of all geometric elements. GeometryTPZGeoEl is the common denominator for all g...
Contains declaration of TPZCompMeshReferred class which implements the structure to allow one mesh to...
virtual void Print(std::ostream &out=std::cout) const override
Prints mesh data.
void Read(TPZStream &buf, void *context) override
Read the element data from a stream.
virtual void ExpandSolution()
Adapt the solution vector to new block dimensions.
TPZCompEl * Reference() const
Return a pointer to the element referenced by the geometric element.
Implements the structure to allow one mesh to refer to the solution of another. Geometry.
int64_t Index() const
Returns element index of the mesh fELementVec list.
int32_t Hash(std::string str)
static void DivideReferredEl(TPZVec< TPZCompEl *> WhichRefine, TPZCompMesh *cmesh)
Divide computational element recursively over referred elements.
TPZCompMesh * ReferredMesh() const
TPZGeoEl * Reference() const
Return a pointer to the corresponding geometric element if such exists, return 0 otherwise.
This class implements a geometric mesh for the pz environment. Geometry.
Implements computational mesh. Computational Mesh.
TPZAdmChunkVector< TPZCompEl * > & ElementVec()
Returns a reference to the element pointers vector.
virtual ~TPZCompMeshReferred()
Defines the interface for saving and reading data. Persistency.
int64_t NElements() const
Returns the number of elements of the vector.
void ResetReference()
Resets all load references in elements and nodes.
Defines the interface of a computational element. Computational Element.
TPZVec< int64_t > fReferredIndices
static void WritePointer(const TPZSavable *obj, TPZStream *stream)
void Write(TPZStream &buf, int withclassid) const override
Save the element data to a stream.
Implements an interface to register a class id and a restore function. Persistence.
virtual void Print(std::ostream &out=std::cout) const
Prints mesh data.
virtual void Read(bool &val)