MEDmeshnEntity.c
Aller à la documentation de ce fichier.
/* This file is part of MED.
*
* COPYRIGHT (C) 1999 - 2020 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/>.
*/
#include <med.h>
#include <med_config.h>
#include <string.h>
#include <stdlib.h>
#include <med_outils.h>
med_int
MEDmeshnEntity(const med_idt fid,
const char * const meshname,
const med_int numdt,
const med_int numit,
const med_entity_type entitype,
const med_geometry_type geotype,
const med_data_type datatype,
const med_connectivity_mode cmode,
med_bool * const changement,
med_bool * const transformation )
{
char _profilename[MED_NAME_SIZE+1]="";
med_int _profilesize=0;
med_int _ret=-1;
_ret = _MEDmeshnEntity(fid, meshname, numdt, numit,entitype, geotype,
datatype, cmode, MED_GLOBAL_STMODE,_profilename, &_profilesize,
changement, transformation );
if ( strlen(_profilename) || (_profilesize > 0) ) {
MED_ERR_(_ret,MED_ERR_EXIST,MED_ERR_PROFILE,_profilename);
goto ERROR;
}
ERROR:
return _ret;
}
MEDmeshnEntity
med_int MEDmeshnEntity(const med_idt fid, const char *const meshname, const med_int numdt, const med_int numit, const med_entity_type entitype, const med_geometry_type geotype, const med_data_type datatype, const med_connectivity_mode cmode, med_bool *const changement, med_bool *const transformation)
Cette routine permet de lire le nombre d'entités dans un maillage pour une étape de calcul donnée.
Definition MEDmeshnEntity.c:44
MED_NAME_SIZE
#define MED_NAME_SIZE
Definition med.h:81
med_geometry_type
int med_geometry_type
Definition med.h:194
med_bool
med_bool
Definition med.h:260
med_data_type
med_data_type
Definition med.h:149
MED_GLOBAL_STMODE
@ MED_GLOBAL_STMODE
Definition med.h:109
med_int
int med_int
Definition med.h:333
med_entity_type
med_entity_type
Definition med.h:143
med_idt
hid_t med_idt
Definition med.h:322
med_connectivity_mode
med_connectivity_mode
Definition med.h:255
med.h
med_config.h
MED_ERR_PROFILE
#define MED_ERR_PROFILE
Definition med_err.h:94
MED_ERR_EXIST
#define MED_ERR_EXIST
Definition med_err.h:43
med_outils.h
_MEDmeshnEntity
MEDC_EXPORT med_int _MEDmeshnEntity(const med_idt fid, const char *const meshname, const med_int numdt, const med_int numit, const med_entity_type entitype, const med_geometry_type geotype, const med_data_type datatype, const med_connectivity_mode cmode, const med_storage_mode storagemode, char *const profilename, med_int *const profilesize, med_bool *const changement, med_bool *const transformation)
MED_ERR_
#define MED_ERR_(rt, r1, r2, r3)
Definition med_utils.h:160