6 #ifndef TPZGEOELREFPATTERN_H_H 7 #define TPZGEOELREFPATTERN_H_H 17 str.
Read(this->fSubEl);
19 str.
Read(&refpatternindex, 1);
20 if (refpatternindex != -1) {
22 std::list< TPZAutoPointer<TPZRefPattern> >::const_iterator it;
24 for (it = RefPatternList.begin(); it != RefPatternList.end(); it++) {
25 if ((*it)->Id() == refpatternindex) {
30 if (it != RefPatternList.end()) {
41 str.
Write(this->fSubEl);
42 int refpatternindex = -1;
43 if (fRefPattern) refpatternindex = fRefPattern->Id();
44 str.
Write(&refpatternindex, 1);
85 if(&DestMesh == this->
Mesh())
99 std::map<int64_t,int64_t> &gl2lcNdMap,
100 std::map<int64_t,int64_t> &gl2lcElMap):
113 if (gl2lcElMap.find(cp.
fSubEl[i]) == gl2lcElMap.end())
115 std::stringstream sout;
116 sout <<
"ERROR in - " << __PRETTY_FUNCTION__
117 <<
" subelement " << i <<
" index = " << cp.
fSubEl[i] <<
" is not in the map.";
125 template <
class TGeo>
127 std::map<int64_t,int64_t> &gl2lcNdMap,
128 std::map<int64_t,int64_t> &gl2lcElMap)
const{
142 #define INSERTCLASS(TCL) \ 144 TPZRestoreClass<TPZGeoElRefPattern<TCL > >; \ 145 template class TPZGeoElRefPattern<TCL>; virtual void Read(TPZStream &str, void *context) override
read objects from the stream
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.
const std::list< TPZAutoPointer< TPZRefPattern > > & RefPatternList(MElementType eltype)
Return the complete set of refinement patterns availabe.
Implements the mapping between the master element and deformed element. Geometry. ...
TPZGeoMesh * Mesh() const
Returns the mesh to which the element belongs.
Implements the geometry of a one dimensional linear element. Geometry.
TPZRefPatternDataBase gRefDBase
External variable to data base of patterns.
virtual TPZGeoEl * ClonePatchEl(TPZGeoMesh &DestMesh, std::map< int64_t, int64_t > &gl2lcNdIdx, std::map< int64_t, int64_t > &gl2lcElIdx) const override
Creates a clone of this element into a new patch mesh.
int64_t size() const
Returns the number of elements of the vector.
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...
void Write(TPZStream &str, int withclassid) const override
Writes this object to the TPZStream buffer. Include the classid if withclassid = true.
void Read(TPZStream &str, void *context) override
read objects from the stream
virtual void Write(const bool val)
virtual TPZGeoEl * Clone(TPZGeoMesh &DestMesh) const override
Implements a generic geometric element which is refined according to a generic refinement pattern...
Defines the behaviour of all geometric elements. GeometryTPZGeoEl is the common denominator for all g...
Contains the TPZGeoTetrahedra class which implements the geometry of a tetrahedral element...
#define DebugStop()
Returns a message to user put a breakpoint in.
Implements the geometry of a quadrilateral element. Geometry.
Contains declaration of TPZGeoElRefPattern class which implements a generic geometric element which i...
TPZGeoElRefPattern()
Default constructor.
#define LOGPZ_ERROR(A, B)
Define log for errors (cout)
Implements the geometry of pyramid element. Geometry.
Contains the TPZGeoCube class which implements the geometry of hexahedra element. ...
Contains the TPZGeoPoint class which implements the geometry of a point element or 0-D element...
Implements the geometry of a point element. Geometry.
Implements the geometry of a triangle element. Geometry.
~TPZGeoElRefPattern()
Default destructor.
Implements the geometry of a tetrahedral element. Geometry.
Contains the TPZRefPatternDataBase class which defines data base of patterns.
This class implements a geometric mesh for the pz environment. Geometry.
Implements the geometry of a prism element. Geometry.
Contains the TPZGeoPyramid class which implements the geometry of pyramid element.
Defines the interface for saving and reading data. Persistency.
int64_t NElements() const
Returns the number of elements of the vector.
Contains the TPZGeoPrism class which implements the geometry of a prism element.
int ClassId() const override
Define the class id associated with the class.
Implements the geometry of hexahedra element. Geometry.
virtual void Write(TPZStream &str, int withclassid) const override
Writes this object to the TPZStream buffer. Include the classid if withclassid = true.
virtual void Read(bool &val)
TPZAutoPointer< TPZRefPattern > fRefPattern