#define MESGERR 1
#include <string.h>
int main (
int argc,
char **argv) {
const med_float tempvalue[3*1*4] = { 1.1, 2.2, 3.3, 4.4,
5.5, 6.6, 7.7, 8.8,
9.9, 10.1,11.11, 12.12};
const char localization[
MED_NAME_SIZE+1] =
"BEAM_INTEGRATION_POINTS";
const char localization2[
MED_NAME_SIZE+1] =
"BEAM_INTEGRATION_TRANSF";
const med_float elementcoordinate[3*3] = { 0.0,0.0,0.0,
0.0,0.0,0.0,
0.0,0.0,0.0,};
const med_float ipointcoordinate[3*3] = { 0.0,0.0,2.5,
0.0,0.0,3.5,
0.0,0.0,4.5};
const med_float weight[4] = {1.0/4, 1.0/4, 1.0/4, 1.0/4};
const med_int const power1_1[] = {0,0,1,0,0,1};
const med_float const coefficient1_1[] = {1,-1,-1};
const med_int const power1_2[] = {1,0};
const med_float const coefficient1_2[] = {1};
const med_int const power1_3[] = {0,1};
const med_float const coefficient1_3[] = {1};
int ret=-1;
if (fid < 0) {
MESSAGE(
"ERROR : file creation ...");
goto ERROR;
}
MESSAGE(
"ERROR : file mounting ...");
goto ERROR;
}
MESSAGE(
"ERROR : file mounting ...");
goto ERROR;
}
if (
MEDlinkWr(fid,meshname,
"./UsesCase_MEDstructElement_1.med") < 0) {
MESSAGE(
"ERROR : create mesh link ...");
goto ERROR;
}
MESSAGE(
"ERROR : interpolation family creation ...");
goto ERROR;
}
MESSAGE(
"ERROR : first base function creation ...");
goto ERROR;
}
MESSAGE(
"ERROR : second base function creation ...");
goto ERROR;
}
MESSAGE(
"ERROR : third base function creation ...");
goto ERROR;
}
nipoint, ipointcoordinate, weight,
MESSAGE(
"ERROR : create famlily of integration points ...");
goto ERROR;
}
nipoint, ipointcoordinate, weight,
interpname, beamsectionname) < 0) {
MESSAGE(
"ERROR : create famlily of integration points ...");
goto ERROR;
}
ncomponent, componentname, componentunit,
"ms", meshname) < 0) {
goto ERROR;
}
nbeam, (unsigned char*) tempvalue) < 0) {
MESSAGE(
"ERROR : write field values on MED_BEAM ");
goto ERROR;
}
nbeam, (unsigned char*) tempvalue) < 0) {
MESSAGE(
"ERROR : write field values on MED_BEAM ");
goto ERROR;
}
MESSAGE(
"ERROR : file unmounting ...");
goto ERROR;
}
MESSAGE(
"ERROR : file unmounting ...");
goto ERROR;
}
ret=0;
ERROR:
ret=-1;
}
return ret;
}