MEDnoeudsLire.c
Aller à la documentation de ce fichier.00001 
00002 
00003 
00004 
00005 
00006 
00007 
00008 
00009 
00010 
00011 
00012 
00013 
00014 
00015 
00016 
00017 
00018   
00019 #include <med.h>
00020 #include <med_config.h>
00021 
00022 med_err
00023 MEDnoeudsLire(med_idt fid,char *maa,med_int mdim, med_float *coord,
00024               med_mode_switch mode_coo,
00025               med_repere *repere,char *nomcoo, char *unicoo,char *nom,
00026               med_booleen *inom,med_int *num,med_booleen *inum,med_int *fam,
00027               med_int nnoeuds)
00028 {
00029   med_int i;
00030 
00031   
00032 
00033 
00034   if (MEDcoordLire(fid,maa,mdim,coord,mode_coo,MED_ALL,0,MED_NOPF,repere,nomcoo,unicoo) < 0)
00035     return -1;
00036 
00037   
00038 
00039 
00040   if (MEDnomLire(fid,maa,nom,nnoeuds,MED_NOEUD,MED_POINT1) < 0)
00041     *inom = MED_FAUX;
00042   else
00043     *inom = MED_VRAI;
00044 
00045   
00046 
00047 
00048   if (MEDnumLire(fid,maa,num,nnoeuds,MED_NOEUD,MED_POINT1) < 0)
00049     *inum = MED_FAUX;
00050   else
00051     *inum = MED_VRAI;  
00052 
00053   
00054 
00055 
00056 
00057 
00058   if (MEDfamLire(fid,maa,fam,nnoeuds,MED_NOEUD,MED_POINT1) < 0)
00059     for (i=0;i<nnoeuds;i++)
00060       *(fam+i) = 0;
00061 
00062   
00063 
00064 
00065   return 0;
00066 }