MED fichier: Fichier source de MEDfield23nValueWithProfile.c

MED fichier

- Documentation MED
- Guides d'utilisation
- Guides de référence

MEDfield23nValueWithProfile.c
Aller à la documentation de ce fichier.
1 /* This file is part of MED.
2 *
3 * COPYRIGHT (C) 1999 - 2019 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.h>
20 #include <med_config.h>
21 #include <string.h>
22 #include <stdlib.h>
23 #include <med_outils.h>
24
45 med_int
46 MEDfield23nValueWithProfile(const med_idt fid,
47 const char * const fieldname,
48 const med_int numdt,
49 const med_int numit,
50 const med_entity_type entitype,
51 const med_geometry_type geotype,
52 const char * const meshname,
53 const int profileit,
54 const med_storage_mode storagemode,
55 char * const profilename,
56 med_int * const profilesize,
57 char * const localizationname,
58 med_int * const nintegrationpoint)
59 {
60 med_int _ret=-1;
61 char _profilename[MED_NAME_SIZE+1]="";
62
63 if ( (_ret = _MEDfield23nValue(fid, fieldname, numdt, numit,
64 entitype, geotype, meshname,
65 _profilename,profileit,
66 storagemode, profilesize,
67 localizationname, nintegrationpoint)) < 0) {
68 MED_ERR_(_ret,MED_ERR_CALL,MED_ERR_API,MED_ERR_FIELD_MSG);
69 SSCRUTE(fieldname);SSCRUTE("_MEDfieldnValue");
70 goto ERROR;
71 }
72
73 strncpy(profilename,_profilename,MED_NAME_SIZE+1);
74 profilename[MED_NAME_SIZE]='\0';
75
76 ERROR:
77
78 return _ret;
79
80 }
81
82
83
MED_ERR_
#define MED_ERR_(rt, r1, r2, r3)
Definition: med_utils.h:158
med_entity_type
med_entity_type
Definition: med.h:141
MED_ERR_CALL
#define MED_ERR_CALL
Definition: med_err.h:45
med_int
int med_int
Definition: med.h:337
med_config.h
med_storage_mode
med_storage_mode
Definition: med.h:106
med_idt
hid_t med_idt
Definition: med.h:326
med_outils.h
MED_NAME_SIZE
#define MED_NAME_SIZE
Definition: med.h:79
med.h
_MEDfield23nValue
MEDC_EXPORT med_int _MEDfield23nValue(const med_idt fid, const char *const fieldname, const med_int numdt, const med_int numit, const med_entity_type entitype, const med_geometry_type geotype, const char *const meshname, char *const profilename, const int profileit, const med_storage_mode storagemode, med_int *const profilesize, char *const localizationname, med_int *const nintegrationpoint)
MEDfield23nValueWithProfile
med_int MEDfield23nValueWithProfile(const med_idt fid, const char *const fieldname, const med_int numdt, const med_int numit, const med_entity_type entitype, const med_geometry_type geotype, const char *const meshname, const int profileit, const med_storage_mode storagemode, char *const profilename, med_int *const profilesize, char *const localizationname, med_int *const nintegrationpoint)
Cette fonction permet de lire le nombre de valeurs à lire dans un champ pour une séquence de calcul...
Definition: MEDfield23nValueWithProfile.c:46
med_geometry_type
int med_geometry_type
Definition: med.h:191
SSCRUTE
#define SSCRUTE(chaine)
Definition: med_utils.h:315
MED_ERR_FIELD_MSG
#define MED_ERR_FIELD_MSG
Definition: med_err.h:138
MED_ERR_API
#define MED_ERR_API
Definition: med_err.h:108