1 // Copyright (C) 2005 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
2 // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
4 // This library is free software; you can redistribute it and/or
5 // modify it under the terms of the GNU Lesser General Public
6 // License as published by the Free Software Foundation; either
7 // version 2.1 of the License.
9 // This library is distributed in the hope that it will be useful
10 // but WITHOUT ANY WARRANTY; without even the implied warranty of
11 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 // Lesser General Public License for more details.
14 // You should have received a copy of the GNU Lesser General Public
15 // License along with this library; if not, write to the Free Software
16 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18 // See http://www.salome-platform.org/
20 /*************************************************************************
21 * COPYRIGHT (C) 1999 - 2002 EDF R&D
22 * THIS LIBRARY IS FREE SOFTWARE; YOU CAN REDISTRIBUTE IT AND/OR MODIFY
23 * IT UNDER THE TERMS OF THE GNU LESSER GENERAL PUBLIC LICENSE
24 * AS PUBLISHED BY THE FREE SOFTWARE FOUNDATION;
25 * EITHER VERSION 2.1 OF THE LICENSE, OR (AT YOUR OPTION) ANY LATER VERSION.
27 * THIS LIBRARY IS DISTRIBUTED IN THE HOPE THAT IT WILL BE USEFUL, BUT
28 * WITHOUT ANY WARRANTY; WITHOUT EVEN THE IMPLIED WARRANTY OF
29 * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. SEE THE GNU
30 * LESSER GENERAL PUBLIC LICENSE FOR MORE DETAILS.
32 * YOU SHOULD HAVE RECEIVED A COPY OF THE GNU LESSER GENERAL PUBLIC LICENSE
33 * ALONG WITH THIS LIBRARY; IF NOT, WRITE TO THE FREE SOFTWARE FOUNDATION,
34 * INC., 59 TEMPLE PLACE, SUITE 330, BOSTON, MA 02111-1307 USA
36 *************************************************************************/
41 /* Interface de l'API MED */
45 MEDouvrir(char *nom, med_mode_acces mode_acces);
47 MEDfermer(med_idt fid);
49 MEDlFichDes(med_idt fid);
51 MEDfichEntete(med_idt fid, med_fich_info quoi, char str[]);
53 MEDfichDesEcr(med_idt fid, char *des, med_mode_acces mode);
55 MEDunvCr(med_idt fid, char *maa);
57 MEDunvLire(med_idt fid, char *maa,char *nomu);
59 MEDformatConforme(const char * nomfich);
61 MEDversionConforme(const char *nom);
63 MEDversionDonner(med_int *majeur, med_int *mineur, med_int *release);
65 MEDversionLire(med_idt fid, med_int *majeur, med_int *mineur, med_int *release);
71 MEDmaaCr(med_idt fid, char *maillage, med_int dim);
73 MEDdimLire(med_idt fid, char *maillage);
75 MEDmaaInfo(med_idt fid, int indice, char *maillage, med_int *dim);
79 MEDnbnosoEcr(med_idt fid, char *nom_maillage,med_int n);
81 MEDnbnosoLire(med_idt fid,char *nom_maillage);
83 MEDnbnoisEcr(med_idt fid, char *nom_maillage,med_int n);
85 MEDnbnoisLire(med_idt fid,char *nom_maillage);
87 MEDnbnomaEcr(med_idt fid, char *nom_maillage,med_int n);
89 MEDnbnomaLire(med_idt fid,char *nom_maillage);
93 MEDconnEcr(med_idt fid,char *maa, med_int mdim, med_int *connectivite,med_mode_switch mode_switch,
94 med_int nbre,med_mode_acces mode,med_entite_maillage type_ent,
95 med_geometrie_element type_geo,med_connectivite type_conn);
98 MEDconnLire(med_idt fid,char *maa,med_int mdim,med_int *connectivite,med_mode_switch mode_switch,
99 med_int * pfltab, med_size psize,
100 med_entite_maillage type_ent, med_geometrie_element type_geo,med_connectivite type_conn);
102 MEDnomEcr(med_idt fid,char *maa, char *nom, med_int n, med_mode_acces mode,
103 med_entite_maillage type_ent,med_geometrie_element type_geo);
105 MEDnomLire(med_idt fid,char *maa, char *nom, med_int n,
106 med_entite_maillage type_ent,med_geometrie_element type_geo);
108 MEDnumLire(med_idt fid,char *maa, med_int *num, med_int n,
109 med_entite_maillage type_ent,med_geometrie_element type_geo);
111 MEDnumEcr(med_idt fid,char *maa, med_int *num, med_int n, med_mode_acces mode,
112 med_entite_maillage type_ent,med_geometrie_element type_geo);
114 MEDcoordEcr(med_idt fid, char *maa, med_int mdim, med_float *coo,
115 med_mode_switch mode_coo,med_int n,
116 med_mode_acces mode, med_repere type_rep, char *nom, char *unit);
118 MEDcoordLire(med_idt fid, char *maa, med_int mdim, med_float *coo,
119 med_mode_switch mode_coo,med_int numco,
120 med_int * pfltab, med_size psize, med_repere *type_rep, char *nom, char *unit);
123 MEDnEntMaa(med_idt fid, char *maa, med_table quoi, med_entite_maillage type_ent,
124 med_geometrie_element type_geo, med_connectivite type_conn);
128 extern med_err MEDchampCr(med_idt fid, char *champ, med_type_champ type, char *comp,
129 char *unit,med_int ncomp);
132 MEDchampEcr(med_idt fid, char *maa, char *cha,unsigned char *val,med_mode_switch interlace,med_int nbelem,med_int ngauss,
133 med_int numco, char * profil, med_mode_acces mode, med_entite_maillage type_ent,
134 med_geometrie_element type_geo, med_int numdt,char * dt_unit, med_float dt, med_int numo);
137 MEDchampLire(med_idt fid,char *maa, char *cha, unsigned char *val,med_mode_switch interlace,med_int numco,
138 char *profil,med_entite_maillage type_ent, med_geometrie_element type_geo,
139 med_int numdt, med_int numo);
142 MEDchampInfo(med_idt fid,int indice,char *champ,
143 med_type_champ *type,char *comp,char *unit,
147 MEDnChamp(med_idt fid, int indice);
150 MEDnVal(med_idt fid, char *champ, med_entite_maillage typ_ent,
151 med_geometrie_element typ_geo,med_int numdt, med_int numo);
156 MEDfamEcr(med_idt fid,char *maa, med_int *fam, med_int n, med_mode_acces mode,
157 med_entite_maillage type_ent, med_geometrie_element type_geo);
159 MEDfamLire(med_idt fid,char *maa, med_int *fam, med_int n,
160 med_entite_maillage type_ent,med_geometrie_element type_geo);
162 MEDfamCr(med_idt fid,char* maa,char *famille,med_int numero,
163 med_int *attr_ident, med_int *attr_val,char *attr_desc,med_int n_attr,
164 char *groupe , med_int n_groupe);
166 MEDnFam(med_idt fid,char *maa, int indice, med_dim_famille quoi);
169 MEDfamInfo(med_idt fid,char *maa,int indice, char *famille,
171 med_int *attr_ident, med_int *attr_val, char *attr_desc,
172 med_int *n_attr,char *groupe ,med_int *n_groupe);
176 MEDequivCr(med_idt fid,char *maa, char *eq, char *desc);
178 MEDequivLire(med_idt fid, char *maa, char *eq, med_int *corr, med_int n,
179 med_entite_maillage typ_ent,med_geometrie_element typ_geo);
181 MEDequivEcr(med_idt fid, char *maa, char *eq, med_int *corr, med_int n,
182 med_mode_acces mode, med_entite_maillage typ_ent, med_geometrie_element typ_geo);
184 MEDequivInfo(med_idt fid, char *maa, int ind, char *eq, char *des);
186 MEDnEquiv(med_idt fid, char *maa);
188 MEDnCorres(med_idt fid,char *maa,char *eq,med_entite_maillage typ_ent,
189 med_geometrie_element typ_geo);
192 /* Routines de niveau intermediaire */
194 MEDnEntites(med_idt fid,char *maa,med_entite_maillage typ_ent,
195 med_connectivite typ_con);
198 MEDnoeudsLire(med_idt fid,char *maa,med_int mdim, med_float *coord,
199 med_mode_switch mode_coo,
200 med_repere *repere,char *nomcoo, char *unicoo,char *nom,
201 med_booleen *inom,med_int *num,med_booleen *inum,med_int *fam,
205 MEDnoeudsEcr(med_idt fid,char *maa,med_int mdim,med_float *coord,
206 med_mode_switch mode_coo,
207 med_repere repere,char *nomcoo, char *unicoo,char *nom,
208 med_booleen inom,med_int *num,med_booleen inum,med_int *fam,
209 med_int nnoeuds,med_mode_acces mode);
211 MEDelementsEcr(med_idt fid,char *maa,med_int mdim,med_int *connectivite,med_mode_switch mode_switch,
212 char *nom,med_booleen inom,med_int *num,med_booleen inum,
213 med_int *fam,med_int nele,med_entite_maillage typ_ent,
214 med_geometrie_element typ_geo,med_connectivite typ_conn,med_mode_acces mode);
216 MEDelementsLire(med_idt fid,char *maa,med_int mdim,med_int *connectivite,med_mode_switch mode_switch,
217 char *nom,med_booleen *inom,med_int *num,med_booleen *inum,
218 med_int *fam,med_int nele,med_entite_maillage typ_ent,
219 med_geometrie_element typ_geo,med_connectivite typ_conn);
221 /* Routines de haut niveau */
223 /*(? On enlève le reste ?)*/
226 MEDfamMaaInfo(med_idt fid,char *maa,med_int *nfam,med_int *nattc,
230 MEDfamMaaLire(med_idt fid,char *maa,
231 med_int *numfam,med_int *attide,
232 med_int *attval,char *attdes,int *indatt,char *gro,int *indgro,
236 MEDfamMaaCr(med_idt fid,char *maa,
237 med_int *numfam,med_int *attide,
238 med_int *attval,char *attdes,int *indatt,char *gro,int *indgro,
241 /* Routines concernant les profils */
244 MEDprofilInfo(med_idt fid, int indice, char *profil, med_int *n);
247 MEDnProfil(med_idt fid);
250 MEDprofilEcr(med_idt fid,med_int *pflval,med_int n,char *nom);
253 MEDnValProfil(med_idt fid, char *nom);
256 MEDprofilLire(med_idt fid, med_int *pflval, char *nom);
258 /* Routines concernant les pas de temps/ numéros d'ordre */
261 MEDnPasdetemps(med_idt fid,char *cha,med_entite_maillage type_ent,
262 med_geometrie_element type_geo);
265 MEDpasdetempsInfo(med_idt fid,char *champ
266 ,med_entite_maillage type_ent, med_geometrie_element type_geo,
267 int indice, char *maa, med_int * ngauss, med_int * numdt, char * dt_unit, med_float * dt,
272 med_int MEDnGrid(med_idt fid, char *maa, med_grid n);
273 med_err MEDgridCr(med_idt fid, char *maillage, med_int dim, med_grid_type typ);
274 med_err MEDgridInfo(med_idt fid, int indice, med_int *isAGrid, med_grid_type *typ);
276 med_idt fid, char *maa, med_int mdim, med_float *coo, med_int nb, med_int dim, med_mode_switch mode_coo,
277 med_repere repere, char *nomcoo, char *unicoo, med_mode_acces mode );
279 med_idt fid, char *maa, med_int mdim, med_float *coo, med_int dim, med_mode_switch mode_coo,
280 med_repere *repere, char *nomcoo, char *unicoo );
281 med_err MEDfamGridEcr(med_idt fid, char *maa, med_int *fam, med_int n, med_mode_acces mode, med_entite_maillage type_ent);
282 med_err MEDfamGridLire(med_idt fid, char *maa, med_int *fam, med_int n, med_entite_maillage type_ent);
283 med_err MEDbodyFittedEcr(
284 med_idt fid, char *maa, med_int mdim, med_float *coo, med_int *nbr, med_mode_switch mode_coo,
285 med_repere repere, char *nomcoo, char *unicoo, med_int *fam, med_int nnoeuds, med_mode_acces mode );
286 med_err MEDbodyFittedLire(
287 med_idt fid, char *maa, med_int mdim, med_float *coo, med_mode_switch mode_coo,
288 med_repere *repere, char *nomcoo, char *unicoo, med_int *fam, med_int nnoeuds );
291 #endif /* MED_PROTO_H */