30 int main (
int argc,
char **argv) {
32 const char meshname[
MED_NAME_SIZE+1] =
"2D unstructured mesh";
39 const med_float tria3values_step1[8] = {1000., 2000., 3000., 4000.,
40 5000., 6000., 7000., 8000.};
41 const med_float quad4values_step1[4] = {10000., 20000., 30000., 4000.};
42 const med_float tria3values_step2[8] = {1500., 2500., 3500., 4500.,
43 5500., 6500., 7500., 8500.};
44 const med_float quad4values_step2[4] = {15000., 25000., 35000., 45000.};
50 MESSAGE(
"ERROR : file creation ...");
55 if (
MEDlinkWr(fid,meshname,
"./UsesCase_MEDmesh_1.med") < 0) {
56 MESSAGE(
"ERROR : create mesh link ...");
65 ncomponent, componentname, componentunit,
"ms", meshname) < 0) {
66 MESSAGE(
"ERROR : create field");
79 MESSAGE(
"ERROR : write field values on MED_TRIA3");
85 MESSAGE(
"ERROR : write field values on MED_QUAD4 ");
93 MESSAGE(
"ERROR : write field values on MED_TRIA3");
100 MESSAGE(
"ERROR : write field values on MED_QUAD4 ");
107 MESSAGE(
"ERROR : write field mesh computation step error ");
116 MESSAGE(
"ERROR : close file ...");