Aller à la documentation de ce fichier.
29 int main (
int argc,
char **argv) {
48 MESSAGE(
"ERROR : open file ...");
61 componentname, componentunit, dtunit, &nstep) < 0) {
62 MESSAGE(
"ERROR : Field info by name ...");
73 MESSAGE(
"ERROR : read number of values ...");
77 if ((verticesvalues = (
med_float *) malloc(
sizeof(
med_float)*nvalues*ncomponent)) == NULL) {
78 MESSAGE(
"ERROR : memory allocation ...");
83 MESSAGE(
"ERROR : read fields values on vertices ...");
92 MESSAGE(
"ERROR : read number of values ...");
95 if ((tria3values = (
med_float *) malloc(
sizeof(
med_float)*nvalues*ncomponent)) == NULL) {
96 MESSAGE(
"ERROR : memory allocation ...");
101 MESSAGE(
"ERROR : read fields values for MED_TRIA3 cells ...");
110 MESSAGE(
"ERROR : read number of values ...");
113 if ((quad4values = (
med_float *) malloc(
sizeof(
med_float)*nvalues*ncomponent)) == NULL) {
114 MESSAGE(
"ERROR : memory allocation ...");
119 MESSAGE(
"ERROR : read fields values for MED_QUAD4 cells ...");
130 MESSAGE(
"ERROR : close file ...");
MEDC_EXPORT med_idt MEDfileOpen(const char *const filename, const med_access_mode accessmode)
Ouverture d'un fichier MED.
MEDC_EXPORT med_err MEDfieldValueRd(const med_idt fid, const char *const fieldname, const med_int numdt, const med_int numit, const med_entity_type entitype, const med_geometry_type geotype, const med_switch_mode switchmode, const med_int componentselect, unsigned char *const value)
Cette fonction permet de lire les valeurs d'un champ définies sur des entités d'un maillage pour une ...
MEDC_EXPORT med_err MEDfieldInfoByName(const med_idt fid, const char *const fieldname, char *const meshname, med_bool *const localmesh, med_field_type *const fieldtype, char *const componentname, char *const componentunit, char *const dtunit, med_int *const ncstp)
Cette fonction permet de lire les informations concernant le champ de nom fieldname.
int main(int argc, char **argv)
MEDC_EXPORT med_int MEDfieldnValue(const med_idt fid, const char *const fieldname, const med_int numdt, const med_int numit, const med_entity_type entitype, const med_geometry_type geotype)
Cette fonction permet de lire le nombre de valeurs dans un champ pour une étape de calcul,...
MEDC_EXPORT med_err MEDfileClose(med_idt fid)
Fermeture d'un fichier MED.
#define MED_ALL_CONSTITUENT