Aller à la documentation de ce fichier.
30 #define MODE_ACCES MED_ACC_RDWR
32 #define MODE_ACCES MED_ACC_RDEXT
34 #define MODE_ACCES MED_ACC_CREAT
42 int main (
int argc,
char **argv)
59 med_int nstep=0,njstep=0,nodtitncor=0,nentity=0;
65 MESSAGE(
"Il faut passer un fichier MED en paramètre");
76 MESSAGE(
"Erreur à la lecture de la dimension de l'espace du maillage :");
82 if (
MEDmeshInfo( fid, 1, maa, &sdim, &mdim, &type, des, dtunit, &sort,
83 &nstep, &rep, nomcoo,unicoo) < 0 ) {
84 MESSAGE(
"Erreur a la lecture des informations sur le maillage : ");
SSCRUTE(maa);
87 printf(
"Maillage de nom : |%s| , de dimension : "IFORMAT" , et de type %d\n",maa,mdim,type);
88 printf(
"\t -Dimension de l'espace : "IFORMAT"\n",sdim);
89 printf(
"\t -Description du maillage : |%s|\n",des);
90 printf(
"\t -Noms des axes : |%s|\n",nomcoo);
91 printf(
"\t -Unités des axes : |%s|\n",unicoo);
92 printf(
"\t -Type de repère : %d\n",rep);
93 printf(
"\t -Nombre d'étapes de calcul : "IFORMAT"\n",nstep);
94 printf(
"\t -Unité des dates : |%s|\n\n",dtunit);
99 MESSAGE(
"Erreur a la lecture du nombre de joints");
102 printf(
"Nombre de joints : "IFORMAT" \n",njnt);
105 for (i = 0;i<njnt;i++) {
106 printf(
"Joint numero : %d \n",i+1);
110 MESSAGE(
"Erreur a la lecture du joint d'indice");
114 printf(
"Nom du joint: |%s| \n",jnt);
115 printf(
"Description du joint : |%s| \n",des);
116 printf(
"Domaine en regard : "IFORMAT" \n",ndom);
117 printf(
"Maillage distant : |%s| \n",maa_dist);
118 printf(
"Nombre d'étapes de calcul : "IFORMAT" \n",njstep);
119 printf(
"Nombre de correspondance pour (NO_DT,NO_IT) : "IFORMAT" \n",nodtitncor);
139 while ( ncor <= nodtitncor ) {
142 &typ_ent_local,&typ_geo_local,&typ_ent_distant,&typ_geo_distant,
144 MESSAGE(
"Erreur a la lecture des infos sur le nombre d'entite en regard");
149 afficheCorres(fid,maa,jnt,typ_ent_local,typ_geo_local,typ_ent_distant,typ_geo_distant,
"------");
158 MESSAGE(
"Erreur a la fermeture du fichier ");
180 typ_ent_local,typ_geo_local,typ_ent_distant,typ_geo_distant,
182 MESSAGE(
"Erreur a la lecture des infos sur le nombre d'entite en regard de type");
187 printf(
"nb de couples d'entites en regard |%s|: "IFORMAT" \n",type,nc);
192 typ_ent_local,typ_geo_local,typ_ent_distant,typ_geo_distant,
194 MESSAGE(
"Erreur a la lecture des correspondances sur ");
200 printf(
"Correspondance %d : "IFORMAT" et "IFORMAT" \n",k+1,*(cortab+2*k),
MEDC_EXPORT med_err MEDsubdomainJointInfo(const med_idt fid, const char *const meshname, const int jointit, char *const jointname, char *const description, med_int *const domainnumber, char *const remotemeshname, med_int *const nstep, med_int *const nocstpncorrespondence)
Cette routine permet de lire les informations sur un joint dans un maillage.
MEDC_EXPORT med_idt MEDfileOpen(const char *const filename, const med_access_mode accessmode)
Ouverture d'un fichier MED.
#define ISCRUTE_int(entier)
int afficheCorres(med_idt fid, char *maa, char *jnt, med_entity_type typ_ent_local, med_geometry_type typ_geo_local, med_entity_type typ_ent_distant, med_geometry_type typ_geo_distant, char *type)
MEDC_EXPORT med_err MEDsubdomainCorrespondenceSizeInfo(const med_idt fid, const char *const meshname, const char *const jointname, const med_int numdt, const med_int numit, const int corit, med_entity_type *const localentitytype, med_geometry_type *const localgeotype, med_entity_type *const remoteentitytype, med_geometry_type *const remotegeotype, med_int *const nentity)
Cette routine permet de lire les informations sur les couples d'entités en correspondance dans un joi...
MEDC_EXPORT med_err MEDsubdomainCorrespondenceSize(const med_idt fid, const char *const meshname, const char *const jointname, const med_int numdt, const med_int numit, const med_entity_type localentitytype, const med_geometry_type localgeotype, const med_entity_type remoteentitytype, const med_geometry_type remotegeotype, med_int *const nentity)
Cette routine permet la lecture du nombre d'entités en correspondance dans un joint pour un couple d'...
MEDC_EXPORT med_err MEDsubdomainCorrespondenceRd(const med_idt fid, const char *const meshname, const char *const jointname, const med_int numdt, const med_int numit, const med_entity_type localentitytype, const med_geometry_type localgeotype, const med_entity_type remoteentitytype, const med_geometry_type remotegeotype, med_int *const correspondence)
Cette routine permet la lecture d'une correspondance dans un joint pour un type de couple d'entité en...
int main(int argc, char **argv)
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 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.
MEDC_EXPORT med_int MEDnSubdomainJoint(const med_idt fid, const char *const meshname)
Cette routine permet la lecture du nombre de joint dans un maillage.