 |
Ice Sheet System Model
4.18
Code documentation
|
Go to the documentation of this file.
7 _printf0_(
"BAMGCONVERTMESH - convert [x y index] to a bamg geom and mesh geom");
10 _printf0_(
" [bamggeom bamgmesh]=BamgConvertMesh(index,x,y)\n");
12 _printf0_(
" x,y: coordinates of the nodes\n");
21 int nods,nels,test1,test2;
38 FetchData(&index,&nels,&test1,INDEXHANDLE);
43 if(nels<0)
_error_(
"Number of elements must be positive, check index number of lines");
44 if(nods<0)
_error_(
"Number of nods must be positive, check x and y sizes");
45 if(test1!=3)
_error_(
"index should have 3 columns");
46 if(test2!=nods)
_error_(
"x and y do not have the same length");
#define _printf0_(StreamArgs)
void WriteData(IssmPDouble **pmatrix, int *pnel, int *matrix, int M, int N)
int BamgConvertMeshx(BamgMesh *bamgmesh, BamgGeom *bamggeom, int *index, double *x, double *y, int nods, int nels)
void BamgConvertMeshUsage(void)
WRAPPER(BamgConvertMesh_python)
void FetchData(char **pstring, char *stringin)
: prototype for Data Interpolation mex module.
#define _error_(StreamArgs)