#define MESGERR 1
#ifdef DEF_LECT_ECR
#define MODE_ACCES MED_ACC_RDWR
#elif DEF_LECT_AJOUT
#define MODE_ACCES MED_ACC_RDEXT
#else
#define MODE_ACCES MED_ACC_CREAT
#endif
char *type);
int main (
int argc,
char **argv)
{
med_int nstep=0,njstep=0,nodtitncor=0,nentity=0;
int i,j,k;
if (argc != 2) {
MESSAGE(
"Il faut passer un fichier MED en paramètre");
return -1;
}
return -1;
}
MESSAGE(
"Erreur à la lecture de la dimension de l'espace du maillage :");
return -1;
}
if (
MEDmeshInfo( fid, 1, maa, &sdim, &mdim, &type, des, dtunit, &sort,
&nstep, &rep, nomcoo,unicoo) < 0 ) {
MESSAGE(
"Erreur a la lecture des informations sur le maillage : ");
SSCRUTE(maa);
return -1;
} else {
printf(
"Maillage de nom : |%s| , de dimension : "IFORMAT" , et de type %d\n",maa,mdim,type);
printf(
"\t -Dimension de l'espace : "IFORMAT"\n",sdim);
printf("\t -Description du maillage : |%s|\n",des);
printf("\t -Noms des axes : |%s|\n",nomcoo);
printf("\t -Unités des axes : |%s|\n",unicoo);
printf("\t -Type de repère : %d\n",rep);
printf(
"\t -Nombre d'étapes de calcul : "IFORMAT"\n",nstep);
printf("\t -Unité des dates : |%s|\n\n",dtunit);
}
MESSAGE(
"Erreur a la lecture du nombre de joints");
return -1;
}
printf(
"Nombre de joints : "IFORMAT" \n",njnt);
for (i = 0;i<njnt;i++) {
printf("Joint numero : %d \n",i+1);
MESSAGE(
"Erreur a la lecture du joint d'indice");
return -1;
}
printf("Nom du joint: |%s| \n",jnt);
printf("Description du joint : |%s| \n",des);
printf(
"Domaine en regard : "IFORMAT" \n",ndom);
printf("Maillage distant : |%s| \n",maa_dist);
printf(
"Nombre d'étapes de calcul : "IFORMAT" \n",njstep);
printf(
"Nombre de correspondance pour (NO_DT,NO_IT) : "IFORMAT" \n",nodtitncor);
ncor=1;
while ( ncor <= nodtitncor ) {
&typ_ent_local,&typ_geo_local,&typ_ent_distant,&typ_geo_distant,
&nentity) < 0 ) {
MESSAGE(
"Erreur a la lecture des infos sur le nombre d'entite en regard");
return -1;
}
afficheCorres(fid,maa,jnt,typ_ent_local,typ_geo_local,typ_ent_distant,typ_geo_distant,
"------");
ncor++;
}
}
MESSAGE(
"Erreur a la fermeture du fichier ");
return -1;
}
return ret;
}
char *type)
{
int k,ncor,ret=0;
typ_ent_local,typ_geo_local,typ_ent_distant,typ_geo_distant,
&nc) < 0) {
MESSAGE(
"Erreur a la lecture des infos sur le nombre d'entite en regard de type");
return -1;
}
printf(
"nb de couples d'entites en regard |%s|: "IFORMAT" \n",type,nc);
if (nc > 0) {
typ_ent_local,typ_geo_local,typ_ent_distant,typ_geo_distant,
cortab)) < 0) {
MESSAGE(
"Erreur a la lecture des correspondances sur ");
ret = -1;
}
if (ret == 0)
for (k=0;k<nc;k++)
printf(
"Correspondance %d : "IFORMAT" et "IFORMAT" \n",k+1,*(cortab+2*k),
*(cortab+2*k+1));
free(cortab);
}
return ret;
}
int main(int argc, char **argv)
MEDC_EXPORT med_err MEDfileClose(med_idt fid)
Fermeture d'un fichier MED.
MEDC_EXPORT med_idt MEDfileOpen(const char *const filename, const med_access_mode accessmode)
Ouverture 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 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 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_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...
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.
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...
#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)