NeoPZ
pznoderep.h.h
Go to the documentation of this file.
1 
6 #ifndef PZNODEREPHH
7 #define PZNODEREPHH
8 
9 #include "pznoderep.h"
10 #include "pzlog.h"
11 #include <sstream>
12 
13 #include "tpzpoint.h"
14 #include "tpzline.h"
15 #include "tpztriangle.h"
16 #include "tpzquadrilateral.h"
17 #include "tpzpyramid.h"
18 #include "tpztetrahedron.h"
19 #include "tpzcube.h"
20 #include "tpzprism.h"
21 
22 #ifdef LOG4CXX
23 static LoggerPtr loggernoderep(Logger::getLogger("pz.geom.noderep"));
24 #endif
25 
26 namespace pzgeom {
27 
29  template<int N, class Topology>
30  TPZNodeRep<N,Topology>::TPZNodeRep(const TPZNodeRep<N,Topology> &cp, std::map<int64_t,int64_t> & gl2lcNdMap)
31  : TPZRegisterClassId(&TPZNodeRep::ClassId)
32  {
33  int64_t i;
34  for(i = 0; i < N; i++)
35  {
36  if (gl2lcNdMap.find(cp.fNodeIndexes[i]) == gl2lcNdMap.end())
37  {
38  std::stringstream sout;
39  sout << "ERROR in - " << __PRETTY_FUNCTION__
40  << " trying to clone a node " << i << " index " << cp.fNodeIndexes[i]
41  << " wich is not mapped";
42  LOGPZ_ERROR(loggernoderep,sout.str().c_str());
43  fNodeIndexes[i] = -1;
44  continue;
45  }
46  fNodeIndexes[i] = gl2lcNdMap [ cp.fNodeIndexes[i] ];
47  }
48  }
49 
50 
51 }
52 
53 #endif
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.
TPZNodeRep()
Empty constructor.
Definition: pznoderep.h:81
Contains the TPZPoint class which defines the topology of a point.
Contains the TPZTriangle class which defines the topology of a triangle.
Contains the TPZTetrahedron class which defines the topology of the tetrahedron element.
Contains the TPZQuadrilateral class which defines the topology of a quadrilateral element...
Contains the TPZNodeRep class which implements ... Clase intermediaria que guarda.
#define LOGPZ_ERROR(A, B)
Define log for errors (cout)
Definition: pzlog.h:93
Implements ... Geometry Topology.
Definition: pznoderep.h:40
Contains the TPZPyramid class which defines the topology of a pyramid element.
Contains the TPZCube class which defines the topology of the hexahedron element.
Contains the TPZLine class which defines the topology of a line element.
Groups all classes which model the geometry.
Definition: pzgeopoint.cpp:18
Contains the TPZPrism class which defines the topology of a Prism.
int64_t fNodeIndexes[N]
Node indexes of the element.
Definition: pznoderep.h:64