#include <med.h>
#define MESGERR 1
#include <med_utils.h>
#include <string.h>
int main (
int argc,
char **argv) {
const med_float part_speed1[3*3] = { 1.1, 2.2, 3.3,
4.4, 5.5, 6.6,
7.7, 8.8, 9.9 };
int ret=-1;
if (fid < 0) {
MESSAGE(
"ERROR : file creation ...");
goto ERROR;
}
if (
MEDlinkWr(fid,meshname,
"./UsesCase_MEDstructElement_1.med") < 0) {
MESSAGE(
"ERROR : create mesh link ...");
goto ERROR;
}
MESSAGE(
"ERROR : file mounting ...");
goto ERROR;
}
ncomponent, componentname, componentunit,
"ms", meshname) < 0) {
goto ERROR;
}
npart, (unsigned char*) part_speed1) < 0) {
MESSAGE(
"ERROR : write field values on MED_PARTICLE ");
goto ERROR;
}
MESSAGE(
"ERROR : file unmounting ...");
goto ERROR;
}
ret=0;
ERROR:
ret=-1;
}
return ret;
}