#define MESGERR 1
#include <string.h>
int main (
int argc,
char **argv) {
int j;
int ret=-1;
int ncell=0;
char *cellsname=NULL;
if (fid < 0) {
goto ERROR;
}
if (
MEDmeshInfoByName(fid, meshname, &spacedim, &meshdim, &meshtype, meshdescription,
dtunit, &sortingtype, &nstep, &axistype, axisname, unitname) < 0) {
goto ERROR;
}
MESSAGE(
"ERROR : read grid type ...");
}
axis = 1;
&coordinatechangement, &geotransformation)) < 0) {
MESSAGE(
"ERROR : number of coordinates on X axis ...");
goto ERROR;
}
ncell = size-1;
MESSAGE(
"ERROR : memory allocation ...");
goto ERROR;
}
axis, cooXaxis) < 0) {
MESSAGE(
"ERROR : read axis X coordinates ...");
free(cooXaxis);
goto ERROR;
}
free(cooXaxis);
axis = 2;
&coordinatechangement, &geotransformation)) < 0) {
MESSAGE(
"ERROR : number of coordinates on Y axis ...");
goto ERROR;
}
ncell = ncell * (size-1);
MESSAGE(
"ERROR : memory allocation ...");
goto ERROR;
}
axis, cooYaxis) < 0) {
MESSAGE(
"ERROR : read axis Y coordinates ...");
free(cooYaxis);
goto ERROR;
}
free(cooYaxis);
MESSAGE(
"ERROR : read cells name ...");
free(cellsname);
goto ERROR;
}
free(cellsname);
ret=0;
ERROR:
ret = -1;
}
return ret;
}