23 static LoggerPtr lognoderep(Logger::getLogger(
"pz.geom.tpznoderep"));
39 template<
int N,
class Topology>
46 std::cout <<
"Element that is NOT TPZGeoBlend trying to Set Neighbour Information on Geometric Mesh!\n";
47 std::cout <<
"See TPZGeoElRefLess::SetNeighbourInfo() Method!\n";
75 memcpy(fNodeIndexes,&nodeindexes[0],nn*
sizeof(int64_t));
77 for(i=nn; i<N; i++) fNodeIndexes[i]=-1;
84 for(i=0; i<N; i++) fNodeIndexes[i]=-1;
89 std::map<int64_t,int64_t> & gl2lcNdMap);
98 Topology::Read(buf, context);
99 buf.
Read(fNodeIndexes, NNodes);
103 Topology::Write(buf, withclassid);
104 buf.
Write(fNodeIndexes, NNodes);
113 std::stringstream sout;
114 sout << __PRETTY_FUNCTION__ <<
" Nodeindexes have wrong size " << nodeindexes.
NElements() <<
" but should be " << N;
118 std::cout << sout.str().c_str() << std::endl;
122 memcpy(fNodeIndexes,&nodeindexes[0],nn*
sizeof(int64_t));
124 for(i=nn; i<N; i++) fNodeIndexes[i]=-1;
136 out <<
"Nodeindices: ";
137 for(nn=0; nn<N; nn++)
139 out << fNodeIndexes[nn] <<
' ';
150 template<
int N,
class Topology>
152 return Hash(
"TPZNodeRep") ^ Topology::ClassId() << 1 ^ (N << 2);
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.
void Read(TPZStream &buf, void *context) override
bool IsGeoBlendEl() const
void Initialize(TPZVec< int64_t > &nodeindexes)
Templated vector implementation.
TPZNodeRep()
Empty constructor.
bool IsLinearMapping() const
void Initialize(TPZGeoEl *)
Utility class which represents an element with its side. The Geometric approximation classes Geometry...
virtual void SetNeighbourInfo(int side, TPZGeoElSide &neigh, TPZTransform<> &trans)
bool ResetBlendConnectivity(const int64_t &side, const int64_t &index)
virtual void Write(const bool val)
Defines the behaviour of all geometric elements. GeometryTPZGeoEl is the common denominator for all g...
#define DebugStop()
Returns a message to user put a breakpoint in.
const double pzgeom_TPZNodeRep_tol
Initializing tolerance to TPZNodeRep.
Free store vector implementation.
TPZNodeRep(TPZVec< int64_t > &nodeindexes)
Constructor with list of nodes.
#define LOGPZ_ERROR(A, B)
Define log for errors (cout)
Implements ... Geometry Topology.
int32_t Hash(std::string str)
void Write(TPZStream &buf, int withclassid) const override
void Print(std::ostream &out) const
Contains the implementation of the TPZNodeRep methods.
Defines the interface for saving and reading data. Persistency.
int64_t NElements() const
Returns the number of elements of the vector.
TPZNodeRep(const TPZNodeRep< N, Topology > &cp)
Copy constructor.
Groups all classes which model the geometry.
int ClassId() const override
virtual void Read(bool &val)
int64_t fNodeIndexes[N]
Node indexes of the element.