MED fichier

MEDmeshInfoByName.c
Aller à la documentation de ce fichier.
1 /* This file is part of MED.
2 *
3 * COPYRIGHT (C) 1999 - 2021 EDF R&D, CEA/DEN
4 * MED is free software: you can redistribute it and/or modify
5 * it under the terms of the GNU Lesser General Public License as published by
6 * the Free Software Foundation, either version 3 of the License, or
7 * (at your option) any later version.
8 *
9 * MED 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
12 * GNU Lesser General Public License for more details.
13 *
14 * You should have received a copy of the GNU Lesser General Public License
15 * along with MED. If not, see <http://www.gnu.org/licenses/>.
16 */
17
18
19 #include "med_config.h"
20 #include <med.h>
21 #include "med_outils.h"
22 #include <string.h>
23
42 med_err MEDmeshInfoByName (const med_idt fid,
43 const char * const meshname,
44 med_int * const spacedim,
45 med_int * const meshdim,
46 med_mesh_type * const meshtype,
47 char * const description,
48 char * const dtunit,
49 med_sorting_type * const sortingtype,
50 med_int * const nstep,
51 med_axis_type * const axistype,
52 char * const axisname,
53 char * const axisunit)
54 {
55 char * name = "_MEDmeshInfoByName";
56 int dummy=0;
57 med_err fret=-1;
58 med_int majeur, mineur, release;
59 MedFuncType func;
60
61 MEDfileNumVersionRd(fid, &majeur, &mineur, &release);
62
63 func = _MEDversionedApi3(name,majeur,mineur,release);
64 if ( func != (MedFuncType) NULL )
65 func (dummy,
66 fid,
67 meshname,
68 spacedim,
69 meshdim,
70 meshtype,
71 description,
72 dtunit,
73 sortingtype,
74 nstep,
75 axistype,
76 axisname,
77 axisunit
78 , &fret);
79
80 return fret;
81 }
_MEDversionedApi3
MEDC_EXPORT MedFuncType _MEDversionedApi3(const char *const name, const med_int majeur, const med_int mineur, const med_int release)
med_idt
hid_t med_idt
Definition: med.h:331
med_err
herr_t med_err
Definition: med.h:332
MedFuncType
void(* MedFuncType)(int,...)
Definition: med_misc.h:29
med_sorting_type
med_sorting_type
Definition: med.h:309
med_int
int med_int
Definition: med.h:342
med.h
MEDfileNumVersionRd
MEDC_EXPORT med_err MEDfileNumVersionRd(const med_idt fid, med_int *const major, med_int *const minor, med_int *const release)
Lecture du numéro de version de la bibliothèque MED utilisée pour créer le fichier.
Definition: MEDfileNumVersionRd.c:34
med_mesh_type
med_mesh_type
Definition: med.h:131
med_outils.h
med_config.h
MEDmeshInfoByName
med_err MEDmeshInfoByName(const med_idt fid, const 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 en précisant son nom.
Definition: MEDmeshInfoByName.c:42
med_axis_type
med_axis_type
Definition: med.h:258