#define MESGERR 1
#include <string.h>
int main (
int argc,
char **argv) {
char *axisname;
char *unitname;
int i, it, j;
int ret=-1;
if (fid < 0) {
MESSAGE(
"ERROR : open file in READ ONLY ACCESS mode ...");
goto ERROR;
}
MESSAGE(
"ERROR : read how many mesh ...");
goto ERROR;
}
for (i=0;i<nmesh;i++) {
MESSAGE(
"ERROR : read computation space dimension ...");
goto ERROR;
}
MESSAGE(
"ERROR : memory allocation ...");
goto ERROR;
}
MESSAGE(
"ERROR : memory allocation ...");
goto ERROR;
}
if (
MEDmeshInfo(fid, i+1, meshname, &spacedim, &meshdim, &meshtype, meshdescription,
dtunit, &sortingtype, &nstep,
&axistype, axisname, unitname) < 0) {
free(axisname);
free(unitname);
goto ERROR;
}
free(axisname);
free(unitname);
&geotransformation)) < 0) {
MESSAGE(
"ERROR : number of nodes ...");
goto ERROR;
}
MESSAGE(
"ERROR : memory allocation ...");
goto ERROR;
}
coordinates) < 0) {
MESSAGE(
"ERROR : nodes coordinates ...");
free(coordinates);
goto ERROR;
}
geotype = geotypes[it];
&geotransformation)) < 0) {
MESSAGE(
"ERROR : number of cell ...");
goto ERROR;
}
if (ngeo) {
if ((connectivity = (
med_int *) malloc(
sizeof(
med_int)*ngeo*(geotype%100))) == NULL) {
MESSAGE(
"ERROR : memory allocation ...");
goto ERROR;
}
MESSAGE(
"ERROR : cell connectivity ...");
free(connectivity);
goto ERROR;
}
free(connectivity);
connectivity = NULL;
}
}
for (it=1;it<nstep;it++) {
&numdt, &numit, &dt) < 0) {
MESSAGE(
"ERROR : Computing step info ...");
goto ERROR;
}
&coordinatechangement, &geotransformation)) < 0) {
MESSAGE(
"ERROR : number of nodes ...");
goto ERROR;
}
if (coordinatechangement && geotransformation) {
coordinates) < 0) {
MESSAGE(
"ERROR : nodes coordinates ...");
free(coordinates);
goto ERROR;
}
}
}
}
free(coordinates);
ret=0;
ERROR:
ret=-1;
}
return ret;
}