/usr/include/2.3.6/med.h is in libmedc-dev 3.0.6-11.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 | /* This file is part of MED.
*
* COPYRIGHT (C) 1999 - 2012 EDF R&D, CEA/DEN
* MED is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* MED is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with MED. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef MED23_H
#define MED23_H
#include <hdf5.h>
#ifdef __cplusplus
extern "C" {
#endif
#define HDF5_VERSION (H5_VERS_MAJOR * 10000 + H5_VERS_MINOR * 100 + H5_VERS_RELEASE )
#if HDF5_VERSION < 10607
#define HDF5_SELECT_BUG (const hsize_t **)
#else
#define HDF5_SELECT_BUG
#endif
#define MED_NUM_MAJEUR 2
#define MED_NUM_MINEUR 3
#define MED_NUM_RELEASE 6
#define MED_NULL (void *) NULL
#define MED_MAX_PARA 20
#define MED_TAILLE_DESC 200
#define MED_TAILLE_IDENT 8
#define MED_TAILLE_NOM 32
#define MED_TAILLE_LNOM 80
#define MED_TAILLE_PNOM 16
#define MED_PNOM_BLANC " "
#define MED_NOM_BLANC " "
/* 01234567890123456789012345678901 */
/*
MED_FULL_INTERLACE : exemple avec 3 composantes X,Y,Z : X1Y1Z1X2Y2Z2X3Y3Z3...
MED_NO_INTERLACE : exemple avec 3 composantes X,Y,Z : X1X2X3Y1Y2Y3Z1Z2Z3...
*/
typedef enum {MED_FULL_INTERLACE,
MED_NO_INTERLACE} med_mode_switch;
typedef enum {MED_NO_PFLMOD,
MED_GLOBAL,
MED_COMPACT } med_mode_profil;
typedef enum {MED_PFL_NON_COMPACT, MED_PFL_COMPACT} med_lecture_profil;
/*
MED_LECTURE : Ouverture en lecture seule
MED_LECTURE_ECRITURE : Ouverture en lecture/ecriture, si un élément existe il est écrasé
MED_LECTURE_AJOUT : Ouverture en lecture/ecriture, si un élément existe une erreur est générée
MED_CREATION : Créer le fichier s'il n'existe pas, l'écrase sinon
MED_MODE_ACCESS : Variable globale interne initialisée au mode d'ouverture
*/
typedef enum {MED_LECTURE, MED_LECTURE_ECRITURE,
MED_LECTURE_AJOUT, MED_CREATION, MED_UNDEF_MODE_ACCES} med_mode_acces;
typedef enum {MED_NON_STRUCTURE, MED_STRUCTURE} med_maillage;
typedef enum {MED_GRILLE_CARTESIENNE, MED_GRILLE_POLAIRE, MED_GRILLE_STANDARD} med_type_grille;
typedef enum {MED_MAILLE, MED_FACE, MED_ARETE, MED_NOEUD, MED_NOEUD_MAILLE } med_entite_maillage;
typedef enum {MED_COOR, MED_CONN, MED_NOM, MED_NUM, MED_FAM,MED_COOR_IND1,MED_COOR_IND2,MED_COOR_IND3} med_table;
typedef enum {MED_FLOAT64=6, MED_INT32=24,MED_INT64=26, MED_INT=28} med_type_champ;
typedef enum {MED_MAILLAGE,MED_CHAMP} med_type_donnee;
#define MED_NBR_GEOMETRIE_MAILLE 15
#define MED_NBR_GEOMETRIE_FACE 4
#define MED_NBR_GEOMETRIE_ARETE 2
typedef enum {MED_POINT1=1, MED_SEG2=102, MED_SEG3=103, MED_TRIA3=203,
MED_QUAD4=204, MED_TRIA6=206,MED_QUAD8=208, MED_TETRA4=304,
MED_PYRA5=305, MED_PENTA6=306, MED_HEXA8=308, MED_TETRA10=310,
MED_PYRA13=313, MED_PENTA15=315, MED_HEXA20=320,
MED_POLYGONE=400, MED_POLYEDRE=500, MED_NONE=0,
MED_SEG4=104, MED_TRIA7=207,MED_QUAD9=209,MED_OCTA12=312,MED_HEXA27=327
} med_geometrie_element;
/* Ne pas utiliser :
MED_SEG4=104, MED_TRIA7=207,MED_QUAD9=209,MED_OCTA12=312, MED_HEXA27=327
*/
typedef enum {MED_NOD, MED_DESC} med_connectivite ;
typedef enum {MED_CART, MED_CYL,MED_SPHER} med_repere;
typedef enum {MED_FAUX, MED_VRAI} med_booleen ;
typedef enum {MED_GROUPE, MED_ATTR, MED_FAMILLE} med_dim_famille;
typedef enum {MED_COMP, MED_DTYPE} med_dim_champ;
typedef enum {MED_HDF_VERSION, MED_VERSION, MED_FICH_DES} med_fich_info;
#define MED_NOPG 1 /* Variable Interne */
#define MED_NOGAUSS "" /* -> pas de point de Gauss */
#define MED_NOGAUSSi MED_NOM_BLANC /* Variable Interne */
#define MED_GAUSS_ELNO "MED_GAUSS_ELNO" /* localisation aux points de Gauss definis
sur les noeuds de l'element */
#define MED_NOPFL "" /* -> pas de profils utilisateur */
#define MED_NOPFLi MED_NOM_BLANC /* Variable Interne */
#define MED_NOLIEN ""
#define MED_NOLIENi MED_NOM_BLANC /* Variable Interne */
#define MED_NOPF 0 /* -> pas de profils pour _MEDdataseNnumEcrire */
#define MED_NOPDT -1 /* rem: pas de pas de temps negatifs */
#define MED_NONOR -1 /* rem: pas de n°ordre negatif */
#define MED_DIM1 1 /* PAS */
#define MED_ALL 0
#define MED_NOREF ""
#define MED_DEFAUT "" /* Toutes les donnees champs ou maillage pour le montage */
/* correspondance des types avec HDF 5 */
typedef hsize_t med_size;
typedef hssize_t med_ssize;
typedef hid_t med_idt;
typedef herr_t med_err;
/* types elementaires */
typedef double med_float;
/*La ligne suivante est déterminée à l'étape de configuration*/
typedef int med_int;
#include "med_proto.h"
extern MEDC_EXPORT char * MED_ENTITE_MAILLAGE_AFF[5];
extern MEDC_EXPORT char * MED_GEOMETRIE_MAILLE_AFF[MED_NBR_GEOMETRIE_MAILLE+2];
extern MEDC_EXPORT char * MED_GEOMETRIE_FACE_AFF[MED_NBR_GEOMETRIE_FACE+1];
extern MEDC_EXPORT char * MED_GEOMETRIE_ARETE_AFF[MED_NBR_GEOMETRIE_ARETE];
extern MEDC_EXPORT char * MED_GEOMETRIE_NOEUD_AFF[1];
#ifdef __cplusplus
}
#endif
#endif /* MED23_H */
|