[15065] | 1 | #include "./bamgobjects.h"
|
---|
[15061] | 2 | #include "../shared/shared.h"
|
---|
[3683] | 3 |
|
---|
[5154] | 4 | /*Constructors/Destructors*/
|
---|
[18301] | 5 | BamgMesh::BamgMesh(){/*{{{*/
|
---|
[3683] | 6 |
|
---|
[19105] | 7 | this->VerticesSize[0]=0, this->VerticesSize[1]=0; this->Vertices=NULL; this->PreviousNumbering = NULL;
|
---|
[5154] | 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;
|
---|
[5177] | 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 |
|
---|
[12043] | 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;
|
---|
[5177] | 20 |
|
---|
[5154] | 21 | this->IssmEdgesSize[0]=0, this->IssmEdgesSize[1]=0; this->IssmEdges=NULL;
|
---|
| 22 | this->IssmSegmentsSize[0]=0, this->IssmSegmentsSize[1]=0; this->IssmSegments=NULL;
|
---|
[5177] | 23 |
|
---|
[5154] | 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;
|
---|
[5177] | 27 | }
|
---|
| 28 | /*}}}*/
|
---|
[18301] | 29 | BamgMesh::~BamgMesh(){/*{{{*/
|
---|
[5154] | 30 |
|
---|
[12456] | 31 | xDelete<double>(this->Vertices);
|
---|
[19105] | 32 | xDelete<double>(this->PreviousNumbering);
|
---|
[12456] | 33 | xDelete<double>(this->Edges);
|
---|
| 34 | xDelete<double>(this->Triangles);
|
---|
| 35 | xDelete<double>(this->Quadrilaterals);
|
---|
[5177] | 36 |
|
---|
[12456] | 37 | xDelete<double>(this->SubDomains);
|
---|
| 38 | xDelete<double>(this->SubDomainsFromGeom);
|
---|
| 39 | xDelete<double>(this->CrackedVertices);
|
---|
| 40 | xDelete<double>(this->CrackedEdges);
|
---|
[5177] | 41 |
|
---|
[12456] | 42 | xDelete<double>(this->VerticesOnGeomVertex);
|
---|
| 43 | xDelete<double>(this->VerticesOnGeomEdge);
|
---|
| 44 | xDelete<double>(this->EdgesOnGeomEdge);
|
---|
[5177] | 45 |
|
---|
[12456] | 46 | xDelete<double>(this->IssmEdges);
|
---|
| 47 | xDelete<double>(this->IssmSegments);
|
---|
[5177] | 48 |
|
---|
[12456] | 49 | xDelete<double>(this->ElementConnectivity);
|
---|
| 50 | xDelete<double>(this->NodalConnectivity);
|
---|
| 51 | xDelete<double>(this->NodalElementConnectivity);
|
---|
[5154] | 52 | }
|
---|
| 53 | /*}}}*/
|
---|