1 | #include "./bamgobjects.h"
|
---|
2 | #include "../shared/shared.h"
|
---|
3 |
|
---|
4 | /*Constructors/Destructors*/
|
---|
5 | BamgMesh::BamgMesh(){/*{{{*/
|
---|
6 |
|
---|
7 | this->VerticesSize[0]=0, this->VerticesSize[1]=0; this->Vertices=NULL; this->PreviousNumbering = NULL;
|
---|
8 | this->EdgesSize[0]=0, this->EdgesSize[1]=0; this->Edges=NULL;
|
---|
9 | this->TrianglesSize[0]=0, this->TrianglesSize[1]=0; this->Triangles=NULL;
|
---|
10 | this->QuadrilateralsSize[0]=0, this->QuadrilateralsSize[1]=0; this->Quadrilaterals=NULL;
|
---|
11 |
|
---|
12 | this->SubDomainsSize[0]=0, this->SubDomainsSize[1]=0; this->SubDomains=NULL;
|
---|
13 | this->SubDomainsFromGeomSize[0]=0, this->SubDomainsFromGeomSize[1]=0; this->SubDomainsFromGeom=NULL;
|
---|
14 | this->CrackedVerticesSize[0]=0, this->CrackedVerticesSize[1]=0; this->CrackedVertices=NULL;
|
---|
15 | this->CrackedEdgesSize[0]=0, this->CrackedEdgesSize[1]=0; this->CrackedEdges=NULL;
|
---|
16 |
|
---|
17 | this->VerticesOnGeomVertexSize[0]=0, this->VerticesOnGeomVertexSize[1]=0; this->VerticesOnGeomVertex=NULL;
|
---|
18 | this->VerticesOnGeomEdgeSize[0]=0, this->VerticesOnGeomEdgeSize[1]=0; this->VerticesOnGeomEdge=NULL;
|
---|
19 | this->EdgesOnGeomEdgeSize[0]=0, this->EdgesOnGeomEdgeSize[1]=0; this->EdgesOnGeomEdge=NULL;
|
---|
20 |
|
---|
21 | this->IssmEdgesSize[0]=0, this->IssmEdgesSize[1]=0; this->IssmEdges=NULL;
|
---|
22 | this->IssmSegmentsSize[0]=0, this->IssmSegmentsSize[1]=0; this->IssmSegments=NULL;
|
---|
23 |
|
---|
24 | this->ElementConnectivitySize[0]=0, this->ElementConnectivitySize[1]=0; this->ElementConnectivity=NULL;
|
---|
25 | this->NodalConnectivitySize[0]=0, this->NodalConnectivitySize[1]=0; this->NodalConnectivity=NULL;
|
---|
26 | this->NodalElementConnectivitySize[0]=0, this->NodalElementConnectivitySize[1]=0; this->NodalElementConnectivity=NULL;
|
---|
27 | }
|
---|
28 | /*}}}*/
|
---|
29 | BamgMesh::~BamgMesh(){/*{{{*/
|
---|
30 |
|
---|
31 | xDelete<double>(this->Vertices);
|
---|
32 | xDelete<double>(this->PreviousNumbering);
|
---|
33 | xDelete<double>(this->Edges);
|
---|
34 | xDelete<double>(this->Triangles);
|
---|
35 | xDelete<double>(this->Quadrilaterals);
|
---|
36 |
|
---|
37 | xDelete<double>(this->SubDomains);
|
---|
38 | xDelete<double>(this->SubDomainsFromGeom);
|
---|
39 | xDelete<double>(this->CrackedVertices);
|
---|
40 | xDelete<double>(this->CrackedEdges);
|
---|
41 |
|
---|
42 | xDelete<double>(this->VerticesOnGeomVertex);
|
---|
43 | xDelete<double>(this->VerticesOnGeomEdge);
|
---|
44 | xDelete<double>(this->EdgesOnGeomEdge);
|
---|
45 |
|
---|
46 | xDelete<double>(this->IssmEdges);
|
---|
47 | xDelete<double>(this->IssmSegments);
|
---|
48 |
|
---|
49 | xDelete<double>(this->ElementConnectivity);
|
---|
50 | xDelete<double>(this->NodalConnectivity);
|
---|
51 | xDelete<double>(this->NodalElementConnectivity);
|
---|
52 | }
|
---|
53 | /*}}}*/
|
---|