#define MESGERR 1
#include <string.h>
int main (
int argc,
char **argv) {
int i, k, ind1, ind2;
int ret=-1;
if (fid < 0) {
MESSAGE(
"ERROR : open file in READ ONLY ACCESS mode ...");
goto ERROR;
}
if (
MEDmeshInfoByName(fid, meshname, &spacedim, &meshdim, &meshtype, meshdescription,
dtunit, &sortingtype, &nstep, &axistype, axisname, unitname) < 0) {
goto ERROR;
}
{
MESSAGE(
"ERROR : number of nodes ...");
goto ERROR;
}
&coordinatechangement, &geotransformation)) < 0)
{
MESSAGE(
"ERROR : read number of polygon ...");
goto ERROR;
}
npoly = indexsize-1;
&coordinatechangement, &geotransformation)) < 0)
{
MESSAGE(
"ERROR : read connectivity size ...");
goto ERROR;
}
MESSAGE(
"ERROR : memory allocation ...");
goto ERROR;
}
{
MESSAGE(
"ERROR : nodes coordinates ...");
free(coordinates);
goto ERROR;
}
free(coordinates);
{
MESSAGE(
"ERROR : read polygon connectivity ...");
free(index);
free(connectivity);
goto ERROR;
}
free(index);
free(connectivity);
ret=0;
ERROR:
ret=-1;
}
return ret;
}