#define MESGERR 1
#include <string.h>
int main (
int argc,
char **argv) {
const med_float tria3values_step1[8] = {1000., 2000., 3000., 4000.,
5000., 6000., 7000., 8000.};
const med_float quad4values_step1[4] = {10000., 20000., 30000., 4000.};
const med_float tria3values_step2[8] = {1500., 2500., 3500., 4500.,
5500., 6500., 7500., 8500.};
const med_float quad4values_step2[4] = {15000., 25000., 35000., 45000.};
int ret=-1;
if (fid < 0) {
MESSAGE(
"ERROR : file creation ...");
goto ERROR;
}
if (
MEDlinkWr(fid,meshname,
"./UsesCase_MEDmesh_1.med") < 0) {
MESSAGE(
"ERROR : create mesh link ...");
goto ERROR;
}
ncomponent, componentname, componentunit,"ms", meshname) < 0) {
goto ERROR;
}
MESSAGE(
"ERROR : write field values on MED_TRIA3");
goto ERROR;
}
MESSAGE(
"ERROR : write field values on MED_QUAD4 ");
goto ERROR;
}
MESSAGE(
"ERROR : write field values on MED_TRIA3");
goto ERROR;
}
MESSAGE(
"ERROR : write field values on MED_QUAD4 ");
goto ERROR;
}
1, 3 ) < 0 ) {
MESSAGE(
"ERROR : write field mesh computation step error ");
goto ERROR;
}
ret=0;
ERROR:
ret=-1;
}
return ret;
}