Ice Sheet System Model  4.18
Code documentation
BamgConvertMeshx.cpp
Go to the documentation of this file.
1 
4 #include "./BamgConvertMeshx.h"
5 
6 #include "../../shared/shared.h"
7 #include "../../toolkits/toolkits.h"
8 #include "../../bamg/bamgobjects.h"
9 
10 using namespace bamg;
11 using namespace std;
12 
13 int BamgConvertMeshx(BamgMesh* bamgmesh,BamgGeom* bamggeom,int* index,double* x,double* y,int nods,int nels){
14 
15  /*Options*/
16  BamgOpts* bamgopts=new BamgOpts();
17 
18  /*read mesh*/
19  Mesh Th(index,x,y,nods,nels,bamgopts);
20 
21  /*write mesh and geometry*/
22  Th.Gh.WriteGeometry(bamggeom,bamgopts);
23  Th.WriteMesh(bamgmesh,bamgopts);
24 
25  /*clean up and return*/
26  delete bamgopts;
27  return 1;
28 
29 }
BamgConvertMeshx
int BamgConvertMeshx(BamgMesh *bamgmesh, BamgGeom *bamggeom, int *index, double *x, double *y, int nods, int nels)
Definition: BamgConvertMeshx.cpp:13
bamg
Definition: AdjacentTriangle.cpp:9
BamgMesh
Definition: BamgMesh.h:7
BamgConvertMeshx.h
header file for Bamg module
BamgOpts
Definition: BamgOpts.h:8
bamg::Mesh
Definition: Mesh.h:21
BamgGeom
Definition: BamgGeom.h:7
bamg::Geometry::WriteGeometry
void WriteGeometry(BamgGeom *bamggeom, BamgOpts *bamgopts)
Definition: Geometry.cpp:266
bamg::Mesh::WriteMesh
void WriteMesh(BamgMesh *bamgmesh, BamgOpts *bamgopts)
Definition: Mesh.cpp:493
bamg::Mesh::Gh
Geometry & Gh
Definition: Mesh.h:25