Ice Sheet System Model  4.18
Code documentation
Functions
BamgConvertMeshx.cpp File Reference
#include "./BamgConvertMeshx.h"
#include "../../shared/shared.h"
#include "../../toolkits/toolkits.h"
#include "../../bamg/bamgobjects.h"

Go to the source code of this file.

Functions

int BamgConvertMeshx (BamgMesh *bamgmesh, BamgGeom *bamggeom, int *index, double *x, double *y, int nods, int nels)
 

Function Documentation

◆ BamgConvertMeshx()

int BamgConvertMeshx ( BamgMesh bamgmesh,
BamgGeom bamggeom,
int *  index,
double *  x,
double *  y,
int  nods,
int  nels 
)

Definition at line 13 of file BamgConvertMeshx.cpp.

13  {
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 }
BamgOpts
Definition: BamgOpts.h:8
bamg::Mesh
Definition: Mesh.h:21