Aller à la documentation de ce fichier.
28 int main (
int argc,
char **argv) {
31 const char meshname[
MED_NAME_SIZE+1] =
"2D unstructured mesh";
57 MESSAGE(
"ERROR : open file in READ ONLY ACCESS mode ...");
67 if (
MEDmeshInfoByName(fid, meshname, &spacedim, &meshdim, &meshtype, meshdescription,
68 dtunit, &sortingtype, &nstep, &axistype, axisname, unitname) < 0) {
69 MESSAGE(
"ERROR : mesh info ...");
76 {
MESSAGE(
"ERROR : number of nodes ...");
89 &coordinatechangement, &geotransformation)) < 0)
90 {
MESSAGE(
"ERROR : read number of polygon ...");
98 &coordinatechangement, &geotransformation)) < 0)
99 {
MESSAGE(
"ERROR : read connectivity size ...");
105 MESSAGE(
"ERROR : memory allocation ...");
110 {
MESSAGE(
"ERROR : nodes coordinates ...");
118 connectivity = (
med_int *) malloc(
sizeof(
med_int)*connectivitysize);
121 {
MESSAGE(
"ERROR : read polygon connectivity ...");
MEDC_EXPORT med_err MEDmeshInfoByName(const med_idt fid, const char *const meshname, med_int *const spacedim, med_int *const meshdim, med_mesh_type *const meshtype, char *const description, char *const dtunit, med_sorting_type *const sortingtype, med_int *const nstep, med_axis_type *const axistype, char *const axisname, char *const axisunit)
Cette routine permet de lire les informations relatives à un maillage en précisant son nom.
MEDC_EXPORT med_int MEDmeshnEntity(const med_idt fid, const char *const meshname, const med_int numdt, const med_int numit, const med_entity_type entitype, const med_geometry_type geotype, const med_data_type datatype, const med_connectivity_mode cmode, med_bool *const changement, med_bool *const transformation)
Cette routine permet de lire le nombre d'entités dans un maillage pour une étape de calcul donnée.
MEDC_EXPORT med_err MEDmeshPolygonRd(const med_idt fid, const char *const meshname, const med_int numdt, const med_int numit, const med_entity_type entitype, const med_connectivity_mode cmode, med_int *const polyindex, med_int *const connectivity)
Cette routine permet la lecture des connectivités de polygones.
MEDC_EXPORT med_err MEDfileClose(med_idt fid)
Fermeture d'un fichier MED.
int main(int argc, char **argv)
MEDC_EXPORT med_idt MEDfileOpen(const char *const filename, const med_access_mode accessmode)
Ouverture d'un fichier MED.
MEDC_EXPORT med_err MEDmeshNodeCoordinateRd(const med_idt fid, const char *const meshname, const med_int numdt, const med_int numit, const med_switch_mode switchmode, med_float *const coordinates)
Cette routine permet de lire dans un maillage le tableau des coordonnées des noeuds,...