#define MESGERR 1
#include <string.h>
int main (
int argc,
char **argv) {
const med_float coordinates[2*10] = { 0.5, 0.,
1.5, 0.,
0., 0.5,
1., 0.5,
2., 0.5,
0., 1.,
1., 1.,
2., 1.,
0.5, 2.,
1.5, 2. };
const med_int connectivity[12] = {1,4,7,9,6,3,
2,5,8,10,7,4};
int ret=-1;
if (fid < 0) {
MESSAGE(
"ERROR : file creation ...");
goto ERROR;
}
{
MESSAGE(
"ERROR : write file description ...");
goto ERROR;
}
if (
MEDmeshCr(fid, meshname, spacedim, meshdim,
{
MESSAGE(
"ERROR : mesh creation ...");
goto ERROR;
}
{
MESSAGE(
"ERROR : nodes coordinates ...");
goto ERROR;
}
{
MESSAGE(
"ERROR : polygon connectivity ...");
goto ERROR;
}
{
MESSAGE(
"ERROR : family 0 creation ...");
goto ERROR;
}
ret=0;
ERROR:
ret=-1;
}
return ret;
}