source: issm/trunk/src/c/bamg/BamgMesh.cpp@ 18301

Last change on this file since 18301 was 18301, checked in by Mathieu Morlighem, 11 years ago

merged trunk-jpl and trunk for revision 18299

File size: 2.5 KB
Line 
1#include "./bamgobjects.h"
2#include "../shared/shared.h"
3
4/*Constructors/Destructors*/
5BamgMesh::BamgMesh(){/*{{{*/
6
7 this->VerticesSize[0]=0, this->VerticesSize[1]=0; this->Vertices=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/*}}}*/
29BamgMesh::~BamgMesh(){/*{{{*/
30
31 xDelete<double>(this->Vertices);
32 xDelete<double>(this->Edges);
33 xDelete<double>(this->Triangles);
34 xDelete<double>(this->Quadrilaterals);
35
36 xDelete<double>(this->SubDomains);
37 xDelete<double>(this->SubDomainsFromGeom);
38 xDelete<double>(this->CrackedVertices);
39 xDelete<double>(this->CrackedEdges);
40
41 xDelete<double>(this->VerticesOnGeomVertex);
42 xDelete<double>(this->VerticesOnGeomEdge);
43 xDelete<double>(this->EdgesOnGeomEdge);
44
45 xDelete<double>(this->IssmEdges);
46 xDelete<double>(this->IssmSegments);
47
48 xDelete<double>(this->ElementConnectivity);
49 xDelete<double>(this->NodalConnectivity);
50 xDelete<double>(this->NodalElementConnectivity);
51}
52/*}}}*/
Note: See TracBrowser for help on using the repository browser.