Aller à la documentation de ce fichier.
30 int main (
int argc,
char **argv) {
60 MESSAGE(
"ERROR : open file in READ ONLY ACCESS mode ...");
66 MESSAGE(
"ERROR : read how many mesh ...");
70 for (i=0;i<nmesh;i++) {
74 MESSAGE(
"ERROR : read computation space dimension ...");
79 if ((axisname = (
char*) malloc(
MED_SNAME_SIZE*spacedim+1)) == NULL) {
80 MESSAGE(
"ERROR : memory allocation ...");
83 if ((unitname = (
char*) malloc(
MED_SNAME_SIZE*spacedim+1)) == NULL) {
84 MESSAGE(
"ERROR : memory allocation ...");
89 if (
MEDmeshInfo(fid, i+1, meshname, &spacedim, &meshdim, &meshtype, meshdescription,
90 dtunit, &sortingtype, &nstep, &axistype, axisname, unitname) < 0) {
91 MESSAGE(
"ERROR : mesh info ...");
92 free(axisname); free(unitname);
102 &geotransformation)) < 0) {
103 MESSAGE(
"ERROR : number of nodes ...");
109 MESSAGE(
"ERROR : memory allocation ...");
115 MESSAGE(
"ERROR : nodes coordinates ...");
126 &geotransformation)) < 0) {
127 MESSAGE(
"ERROR : number of geo type ...");
132 for (it=1; it<=ngeo; it++) {
136 geotypename,&geotype) < 0) {
137 MESSAGE(
"ERROR : get geo type ...");
145 &geotransformation)) < 0) {
146 MESSAGE(
"ERROR : number of cell ...");
151 if ((connectivity = (
med_int *) malloc(
sizeof(
med_int)*nelt*(geotype%100))) == NULL) {
152 MESSAGE(
"ERROR : memory allocation ...");
158 MESSAGE(
"ERROR : cell connectivity ...");
int main(int argc, char **argv)
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_idt MEDfileOpen(const char *const filename, const med_access_mode accessmode)
Ouverture d'un fichier MED.
#define ISCRUTE_int(entier)
MEDC_EXPORT med_err MEDmeshEntityInfo(const med_idt fid, const char *const meshname, const med_int numdt, const med_int numit, const med_entity_type entitype, const int geotypeit, char *const geotypename, med_geometry_type *const geotype)
Cette routine indique de façon itérative les types géométriques disponibles dans un maillage.
med_geometry_type MED_GET_CELL_GEOMETRY_TYPE[MED_N_CELL_FIXED_GEO+2]
MEDC_EXPORT med_err MEDmeshElementConnectivityRd(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_connectivity_mode cmode, const med_switch_mode switchmode, med_int *const connectivity)
Cette routine permet de lire dans un maillage le tableau des connectivités pour un type géométrique d...
MEDC_EXPORT med_int MEDmeshnAxis(const med_idt fid, const int meshit)
Cette routine permet de lire dans un maillage le nombre d'axes du repère des coordonnées des noeuds.
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,...
MEDC_EXPORT med_int MEDnMesh(const med_idt fid)
Cette routine permet de lire le nombre de maillages dans un fichier.
MEDC_EXPORT med_err MEDfileClose(med_idt fid)
Fermeture d'un fichier MED.
MEDC_EXPORT med_err MEDmeshInfo(const med_idt fid, const int meshit, 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 dans un fichier.