# 2.3.6/med_proto.h

Aller à la documentation de ce fichier.

    00001 /*  This file is part of MED.
    00002  *
    00003  *  COPYRIGHT (C) 1999 - 2012  EDF R&D, CEA/DEN
    00004  *  MED is free software: you can redistribute it and/or modify
    00005  *  it under the terms of the GNU Lesser General Public License as published by
    00006  *  the Free Software Foundation, either version 3 of the License, or
    00007  *  (at your option) any later version.
    00008  *
    00009  *  MED is distributed in the hope that it will be useful,
    00010  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
    00011  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    00012  *  GNU Lesser General Public License for more details.
    00013  *
    00014  *  You should have received a copy of the GNU Lesser General Public License
    00015  *  along with MED.  If not, see <http://www.gnu.org/licenses/>.
    00016  */
    00017
    00018 #ifndef MED23_PROTO_H
    00019 #define MED23_PROTO_H
    00020
    00021 #include "medC_win_dll.h"
    00022
    00023 #ifdef __cplusplus
    00024 extern "C" {
    00025 #endif
    00026
    00027 /* Interface de l'API MED */
    00028
    00029 /* Fichier */
    00030 MEDC_EXPORT med_idt
    00031 MEDouvrir(char *nom, med_mode_acces mode_acces);
    00032 MEDC_EXPORT med_err
    00033 MEDfermer(med_idt fid);
    00034 MEDC_EXPORT med_int
    00035 MEDlFichDes(med_idt fid);
    00036 MEDC_EXPORT med_err
    00037 MEDfichEntete(med_idt fid, med_fich_info quoi, char str[]);
    00038 MEDC_EXPORT med_err
    00039 MEDfichDesEcr(med_idt fid, char *des);
    00040 MEDC_EXPORT med_err
    00041 MEDunvCr(med_idt fid, char *maa);
    00042 MEDC_EXPORT med_err
    00043 MEDunvLire(med_idt fid, char *maa,char *nomu);
    00044 MEDC_EXPORT med_err
    00045 MEDformatConforme(const char * nomfich);
    00046 MEDC_EXPORT med_err
    00047 MEDversionConforme(const char *nom);
    00048 MEDC_EXPORT void
    00049 MEDversionDonner(med_int *majeur, med_int *mineur, med_int *release);
    00050 MEDC_EXPORT med_err
    00051 MEDversionLire(med_idt fid, med_int *majeur, med_int *mineur, med_int *release);
    00052 MEDC_EXPORT med_idt
    00053 MEDmonter(med_idt fid, const char *acces, med_type_donnee type);
    00054 MEDC_EXPORT med_err
    00055 MEDdemonter(med_idt fid,med_idt mid,med_type_donnee type);
    00056
    00057
    00058 /* Maillage */
    00059 MEDC_EXPORT med_err
    00060 MEDmaaCr(med_idt fid, char *maillage, med_int dim,med_maillage type,char *desc);
    00061 MEDC_EXPORT med_err
    00062 MEDdimEspaceCr(med_idt fid, char *maillage, med_int dim);
    00063 MEDC_EXPORT med_int
    00064 MEDdimLire(med_idt fid, char *maillage);
    00065 MEDC_EXPORT med_int
    00066 MEDdimEspaceLire(med_idt fid, char *maillage);
    00067 MEDC_EXPORT med_err
    00068 MEDmaaInfo(med_idt fid, int indice, char *maillage, med_int *dim,
    00069            med_maillage *type,char *desc);
    00070 MEDC_EXPORT med_int
    00071 MEDnMaa(med_idt fid);
    00072 MEDC_EXPORT med_err
    00073 MEDnbnosoEcr(med_idt fid, char *nom_maillage,med_int n);
    00074 MEDC_EXPORT med_int
    00075 MEDnbnosoLire(med_idt fid,char *nom_maillage);
    00076 MEDC_EXPORT med_err
    00077 MEDnbnoisEcr(med_idt fid, char *nom_maillage,med_int n);
    00078 MEDC_EXPORT med_int
    00079 MEDnbnoisLire(med_idt fid,char *nom_maillage);
    00080 MEDC_EXPORT med_err
    00081 MEDnbnomaEcr(med_idt fid, char *nom_maillage,med_int n);
    00082 MEDC_EXPORT med_int
    00083 MEDnbnomaLire(med_idt fid,char *nom_maillage);
    00084 MEDC_EXPORT med_err
    00085 MEDnatureGrilleEcr(med_idt fid,char *maillage,med_type_grille type);
    00086 MEDC_EXPORT med_err
    00087 MEDnatureGrilleLire(med_idt fid,char *maillage,med_type_grille *type);
    00088
    00089 /* EntMaillage */
    00090 MEDC_EXPORT med_err
    00091 MEDconnEcr(med_idt fid,char *maa, med_int mdim, med_int *connectivite,med_mode_switch mode_switch,
    00092            med_int nbre, med_entite_maillage type_ent,
    00093            med_geometrie_element type_geo,med_connectivite type_conn);
    00094
    00095 MEDC_EXPORT med_err
    00096 MEDconnLire(med_idt fid,char *maa,med_int mdim,med_int *connectivite,med_mode_switch mode_switch,
    00097             med_int * pfltab, med_size psize,
    00098             med_entite_maillage type_ent, med_geometrie_element type_geo,med_connectivite type_conn);
    00099 MEDC_EXPORT med_err
    00100 MEDnomEcr(med_idt fid,char *maa, char *nom, med_int n,
    00101           med_entite_maillage type_ent,med_geometrie_element type_geo);
    00102 MEDC_EXPORT med_err
    00103 MEDnomLire(med_idt fid,char *maa, char *nom, med_int n,
    00104            med_entite_maillage type_ent,med_geometrie_element type_geo);
    00105 MEDC_EXPORT med_err
    00106 MEDnumLire(med_idt fid,char *maa, med_int *num, med_int n,
    00107            med_entite_maillage type_ent,med_geometrie_element type_geo);
    00108 MEDC_EXPORT med_err
    00109 MEDnumEcr(med_idt fid,char *maa, med_int *num, med_int n,
    00110           med_entite_maillage type_ent,med_geometrie_element type_geo);
    00111 MEDC_EXPORT med_err
    00112 MEDcoordEcr(med_idt fid, char *maa, med_int mdim, med_float *coo,
    00113             med_mode_switch mode_coo,med_int n,
    00114             med_repere type_rep, char *nom, char *unit);
    00115 MEDC_EXPORT med_err
    00116 MEDindicesCoordEcr(med_idt fid,char *maillage,med_int mdim,med_float *indices,
    00117                    med_int n,med_int axe,char *comp,char *unit);
    00118 MEDC_EXPORT med_err
    00119 MEDstructureCoordEcr(med_idt fid,char *maillage,med_int mdim,med_int *structure);
    00120 MEDC_EXPORT med_err
    00121 MEDcoordLire(med_idt fid, char *maa, med_int mdim, med_float *coo,
    00122              med_mode_switch mode_coo,med_int numco,
    00123              med_int * pfltab, med_size psize, med_repere *type_rep, char *nom, char *unit);
    00124 MEDC_EXPORT med_err
    00125 MEDindicesCoordLire(med_idt fid,char *maillage,med_int mdim,med_float *indices,
    00126                     med_int n,med_int axe,char *comp,char *unit);
    00127 MEDC_EXPORT med_err
    00128 MEDstructureCoordLire(med_idt fid,char *maillage,med_int mdim,med_int *structure);
    00129 MEDC_EXPORT med_int
    00130 MEDnEntMaa(med_idt fid, char *maa, med_table quoi, med_entite_maillage type_ent,
    00131            med_geometrie_element type_geo, med_connectivite type_conn);
    00132 MEDC_EXPORT med_err
    00133 MEDpolygoneConnEcr(med_idt fid, char *maa, med_int *index, med_int ni, med_int *con,
    00134                    med_entite_maillage type_ent, med_connectivite type_conn);
    00135 MEDC_EXPORT med_err
    00136 MEDpolygoneInfo(med_idt fid, char *maa, med_entite_maillage type_ent,med_connectivite type_conn,
    00137                 med_int *consize);
    00138 MEDC_EXPORT med_err
    00139 MEDpolygoneConnLire(med_idt fid, char *maa, med_int *index, med_int ni, med_int *con,
    00140                     med_entite_maillage type_ent, med_connectivite type_conn);
    00141 MEDC_EXPORT med_err
    00142 MEDpolyedreConnEcr(med_idt fid,char *maa,med_int *indexp,med_int np,med_int *indexf,med_int nf,
    00143                    med_int *con,med_connectivite type_conn);
    00144 MEDC_EXPORT med_err
    00145 MEDpolyedreInfo(med_idt fid, char *maa,med_connectivite type_conn,med_int *nf,
    00146                 med_int *consize);
    00147 MEDC_EXPORT med_err
    00148 MEDpolyedreConnLire(med_idt fid,char *maa,med_int *indexp,med_int np,med_int *indexf,med_int nf,
    00149                     med_int *con,med_connectivite type_conn);
    00150
    00151 /* Resultat */
    00152 MEDC_EXPORT med_err MEDchampCr(med_idt fid, char *champ, med_type_champ type, char *comp,
    00153                    char *unit,med_int ncomp);
    00154
    00155 MEDC_EXPORT
    00156 med_err MEDchampEcr(med_idt fid, char *maa, char *cha,
    00157                     unsigned char *val, med_mode_switch interlace, med_int nbelem, char * locname,
    00158                     med_int numco, char * profil, med_mode_profil pflmod,
    00159                     med_entite_maillage type_ent, med_geometrie_element type_geo,
    00160                     med_int numdt,char * dt_unit, med_float dt, med_int numo);
    00161 MEDC_EXPORT med_err
    00162 MEDchampLire(med_idt fid,char *maa, char *cha, unsigned char *val,med_mode_switch interlace,med_int numco,
    00163              char * locname, char *profil, med_mode_profil pflmod,
    00164              med_entite_maillage type_ent, med_geometrie_element type_geo,
    00165              med_int numdt, med_int numo);
    00166
    00167 MEDC_EXPORT med_err
    00168 MEDchampInfo(med_idt fid,int indice,char *champ,
    00169                      med_type_champ *type,char *comp,char *unit,
    00170                      med_int ncomp);
    00171
    00172 MEDC_EXPORT med_err
    00173 MEDchampRefInfo(med_idt fid,char *champ,
    00174                 med_entite_maillage type_ent, med_geometrie_element type_geo,
    00175                 int indice, med_int numdt, med_int numo,
    00176                 char * maa, med_booleen * local, med_int * ngauss);
    00177 MEDC_EXPORT med_int
    00178 MEDnChamp(med_idt fid, int indice);
    00179
    00180 MEDC_EXPORT med_int
    00181 MEDnChampRef(med_idt fid, char * cha, med_entite_maillage type_ent, med_geometrie_element type_geo, med_int numdt, med_int numo);
    00182
    00183 MEDC_EXPORT
    00184 med_int
    00185 MEDnVal(med_idt fid, char *cha, med_entite_maillage type_ent,
    00186         med_geometrie_element type_geo,med_int numdt, med_int numo, char * maa,med_mode_profil pflmod);
    00187
    00188 /* Famille  */
    00189 MEDC_EXPORT med_err
    00190 MEDfamEcr(med_idt fid,char *maa, med_int *fam, med_int n,
    00191           med_entite_maillage type_ent, med_geometrie_element type_geo);
    00192 MEDC_EXPORT med_err
    00193 MEDfamLire(med_idt fid,char *maa, med_int *fam, med_int n,
    00194            med_entite_maillage type_ent,med_geometrie_element type_geo);
    00195 MEDC_EXPORT med_err
    00196 MEDfamCr(med_idt fid,char* maa,char *famille,med_int numero,
    00197          med_int *attr_ident, med_int *attr_val,char *attr_desc,med_int n_attr,
    00198          char *groupe , med_int n_groupe);
    00199 MEDC_EXPORT med_int
    00200 MEDnFam(med_idt fid,char *maa);
    00201 MEDC_EXPORT med_int
    00202 MEDnAttribut(med_idt fid,char *maa, int indice);
    00203 MEDC_EXPORT med_int
    00204 MEDnGroupe(med_idt fid,char *maa, int indice);
    00205 MEDC_EXPORT med_err
    00206 MEDfamInfo(med_idt fid,char *maa,int indice, char *famille,
    00207            med_int *numero,
    00208            med_int *attr_ident, med_int *attr_val, char *attr_desc,
    00209            med_int *n_attr,char *groupe ,med_int *n_groupe);
    00210
    00211 /* Equivalence    */
    00212 MEDC_EXPORT med_err
    00213 MEDequivCr(med_idt fid,char *maa, char *eq, char *desc);
    00214 MEDC_EXPORT med_err
    00215 MEDequivLire(med_idt fid, char *maa, char *eq, med_int *corr, med_int n,
    00216             med_entite_maillage typ_ent,med_geometrie_element typ_geo);
    00217 MEDC_EXPORT med_err
    00218 MEDequivEcr(med_idt fid, char *maa, char *eq, med_int *corr, med_int n,
    00219             med_entite_maillage typ_ent, med_geometrie_element typ_geo);
    00220 MEDC_EXPORT med_err
    00221 MEDequivInfo(med_idt fid, char *maa, int ind, char *eq, char *des);
    00222 MEDC_EXPORT med_int
    00223 MEDnEquiv(med_idt fid, char *maa);
    00224 MEDC_EXPORT med_int
    00225 MEDnCorres(med_idt fid,char *maa,char *eq,med_entite_maillage typ_ent,
    00226            med_geometrie_element typ_geo);
    00227
    00228
    00229
    00230
    00231 /* Routines concernant les joints */
    00232
    00233 MEDC_EXPORT med_err
    00234 MEDjointEcr(med_idt fid, char *maa, char *jn, med_int *corrtab, med_int n,
    00235             med_entite_maillage typ_ent_local,   med_geometrie_element typ_geo_local,
    00236             med_entite_maillage typ_ent_distant, med_geometrie_element typ_geo_distant);
    00237
    00238
    00239
    00240 MEDC_EXPORT med_err
    00241 MEDjointLire(med_idt fid, char *maa, char *jn, med_int *corrtab, med_int n,
    00242              med_entite_maillage typ_ent_local,   med_geometrie_element typ_geo_local,
    00243              med_entite_maillage typ_ent_distant, med_geometrie_element typ_geo_distant);
    00244
    00245 MEDC_EXPORT med_err
    00246 MEDjointCr(med_idt fid,char *maa_lcl, char *jn, char *desc,
    00247            med_int dom,char *maa_dist);
    00248
    00249 MEDC_EXPORT med_err
    00250 MEDjointInfo(int fid,  char *maa_lcl,  int ind, char *jn, char *des,
    00251              med_int *dom, char *maa_dist);
    00252
    00253 MEDC_EXPORT med_int
    00254 MEDjointnCorres(med_idt fid, char *maa_lcl, char *jn,
    00255                  med_entite_maillage typ_ent_local,   med_geometrie_element typ_geo_local,
    00256                  med_entite_maillage typ_ent_distant, med_geometrie_element typ_geo_distant);
    00257
    00258 MEDC_EXPORT med_err
    00259 MEDjointTypeCorres(med_idt fid, char *maa_lcl, char *jn, int ind,
    00260                    med_entite_maillage *typ_ent_local,   med_geometrie_element *typ_geo_local,
    00261                    med_entite_maillage *typ_ent_distant, med_geometrie_element *typ_geo_distant);
    00262
    00263 MEDC_EXPORT med_int
    00264 MEDnJoint(med_idt fid, char *maa);
    00265
    00266
    00267 MEDC_EXPORT med_err
    00268 MEDglobalNumEcr(med_idt fid,char *maa, med_int *num, med_int n,
    00269                 med_entite_maillage type_ent, med_geometrie_element type_geo);
    00270
    00271
    00272 MEDC_EXPORT med_err
    00273 MEDglobalNumLire(med_idt fid,char *maa, med_int *num, med_int n,
    00274                  med_entite_maillage type_ent,med_geometrie_element type_geo);
    00275
    00276
    00277 /* Routines de niveau intermediaire */
    00278 MEDC_EXPORT med_int
    00279 MEDnEntites(med_idt fid,char *maa,med_entite_maillage typ_ent,
    00280             med_connectivite typ_con);
    00281
    00282 MEDC_EXPORT med_err
    00283 MEDnoeudsLire(med_idt fid,char *maa,med_int mdim, med_float *coord,
    00284               med_mode_switch mode_coo,
    00285               med_repere *repere,char *nomcoo, char *unicoo,char *nom,
    00286               med_booleen *inom,med_int *num,med_booleen *inum,med_int *fam,
    00287               med_int nnoeuds);
    00288
    00289 MEDC_EXPORT med_err
    00290 MEDnoeudsEcr(med_idt fid,char *maa,med_int mdim,med_float *coord,
    00291              med_mode_switch mode_coo,
    00292              med_repere repere,char *nomcoo, char *unicoo,char *nom,
    00293              med_booleen inom,med_int *num,med_booleen inum,med_int *fam,
    00294              med_int nnoeuds);
    00295 MEDC_EXPORT med_err
    00296 MEDelementsEcr(med_idt fid,char *maa,med_int mdim,med_int *connectivite,med_mode_switch mode_switch,
    00297                char *nom,med_booleen inom,med_int *num,med_booleen inum,
    00298                med_int *fam,med_int nele,med_entite_maillage typ_ent,
    00299                med_geometrie_element typ_geo,med_connectivite typ_conn);
    00300 MEDC_EXPORT med_err
    00301 MEDelementsLire(med_idt fid,char *maa,med_int mdim,med_int *connectivite,med_mode_switch mode_switch,
    00302                char *nom,med_booleen *inom,med_int *num,med_booleen *inum,
    00303                med_int *fam,med_int nele,med_entite_maillage typ_ent,
    00304                med_geometrie_element typ_geo,med_connectivite typ_conn);
    00305 MEDC_EXPORT med_err
    00306 MEDgro2famCr(med_idt fid,char *maillage,char *groupes,med_int *index,med_int ngroup,med_int *entites,
    00307              med_int nent,med_entite_maillage type_ent,
    00308              med_geometrie_element *type_geo,med_int *indexgeo,med_int ngeo);
    00309
    00310 /* Routines concernant les profils */
    00311 MEDC_EXPORT med_err
    00312 MEDprofilInfo(med_idt fid, int indice, char *profilname, med_int *n);
    00313
    00314 MEDC_EXPORT med_int
    00315 MEDnProfil(med_idt fid);
    00316
    00317 MEDC_EXPORT med_err
    00318 MEDprofilEcr(med_idt fid,med_int *pflval,med_int n,char *profilname);
    00319
    00320 MEDC_EXPORT med_int
    00321 MEDnValProfil(med_idt fid, char *nom);
    00322
    00323 MEDC_EXPORT med_err
    00324 MEDprofilLire(med_idt fid, med_int *pflval, char *profilname);
    00325
    00326 /* Routines concernant les points de GAUSS */
    00327
    00328 MEDC_EXPORT med_int
    00329 MEDnGauss(med_idt fid);
    00330
    00331 MEDC_EXPORT med_err
    00332 MEDgaussEcr(med_idt fid, med_geometrie_element type_geo, med_float *refcoo, med_mode_switch mode_coo,
    00333             med_int ngauss, med_float *gscoo, med_float * wg, char * locname );
    00334
    00335 MEDC_EXPORT med_err
    00336 MEDgaussLire(med_idt fid, med_float *refcoo, med_float *gscoo, med_float * wg, med_mode_switch mode_coo, char *profilname);
    00337
    00338 MEDC_EXPORT med_err
    00339 MEDgaussInfo(med_idt fid, int indice, char * locname, med_geometrie_element * type_geo,
    00340              med_int * ngauss );
    00341
    00342 /* Routines concernant les pas de temps/ numéros d'ordre */
    00343
    00344 MEDC_EXPORT med_int
    00345 MEDnPasdetemps(med_idt fid,char *cha,med_entite_maillage type_ent,
    00346                med_geometrie_element type_geo);
    00347
    00348 MEDC_EXPORT med_err
    00349 MEDpasdetempsInfo(med_idt fid,char *champ,
    00350                   med_entite_maillage type_ent, med_geometrie_element type_geo,
    00351                   int indice, med_int * ngauss, med_int * numdt, med_int * numo,
    00352                   char * dt_unit, med_float * dt,  char * maa, med_booleen * local, med_int *nmaa);
    00353
    00354 /* Routines concernant les liens */
    00355 MEDC_EXPORT med_int
    00356 MEDnValLien(med_idt fid, char *maa);
    00357
    00358 MEDC_EXPORT med_err
    00359 MEDlienEcr(med_idt fid, char *lienval,char *maa);
    00360
    00361 MEDC_EXPORT med_err
    00362 MEDlienLire(med_idt fid, char * lienval, char * maa);
    00363
    00364 MEDC_EXPORT med_int
    00365 MEDnLien(med_idt fid );
    00366
    00367 MEDC_EXPORT med_err
    00368 MEDlienInfo( med_idt fid, int indice, char * maa, med_int * n);
    00369
    00370 /* Variables scalaires */
    00371 MEDC_EXPORT med_err
    00372 MEDscalaireCr(med_idt fid,char *scalaire, med_type_champ type, char *desc);
    00373
    00374 MEDC_EXPORT med_err
    00375 MEDscalaireEntierEcr(med_idt fid, char *scalaire, med_int val,
    00376                      med_int numdt, char *dt_unit, med_float dt, med_int numo);
    00377
    00378 MEDC_EXPORT med_err
    00379 MEDscalaireFlottantEcr(med_idt fid, char *scalaire, med_float val,
    00380                        med_int numdt, char *dt_unit, med_float dt, med_int numo);
    00381
    00382 MEDC_EXPORT med_int
    00383 MEDnScalaire(med_idt fid);
    00384
    00385 MEDC_EXPORT med_err
    00386 MEDscalaireInfo(med_idt fid,int indice,char *scalaire,
    00387                 med_type_champ *type,char *desc);
    00388
    00389 MEDC_EXPORT med_int
    00390 MEDnScalairePasdetemps(med_idt fid,char *scalaire);
    00391
    00392 MEDC_EXPORT med_err
    00393 MEDscalairePasdetempsInfo(med_idt fid,char *scalaire,int indice,
    00394                           med_int * numdt, char * dt_unit, med_float * dt,med_int * numo);
    00395
    00396 MEDC_EXPORT med_err
    00397 MEDscalaireEntierLire(med_idt fid,char *scalaire, med_int  *val,med_int numdt, med_int numo);
    00398
    00399 MEDC_EXPORT med_err
    00400 MEDscalaireFlottantLire(med_idt fid,char *scalaire, med_float  *val,med_int numdt, med_int numo);
    00401
    00402 #ifdef __cplusplus
    00403 }
    00404 #endif
    00405
    00406 #endif /* MED23_PROTO_H */
    00407
    00408
    00409
    00410