MEDmeshnEntity.c
Aller à la documentation de ce fichier.00001 
00002 
00003 
00004 
00005 
00006 
00007 
00008 
00009 
00010 
00011 
00012 
00013 
00014 
00015 
00016 
00017 
00018 
00019 #include <med.h>
00020 #include <med_config.h>
00021 #include <string.h>
00022 #include <stdlib.h>
00023 #include <med_outils.h>
00024 
00043 med_int
00044 MEDmeshnEntity(const med_idt fid,
00045                const char * const meshname,
00046                const med_int numdt,
00047                const med_int numit,
00048                const med_entity_type entitype,
00049                const med_geometry_type geotype,
00050                const med_data_type datatype,
00051                const med_connectivity_mode cmode,
00052                med_bool * const changement,
00053                med_bool * const transformation )
00054 {
00055 
00056   char                   _profilename[MED_NAME_SIZE+1]="";
00057   med_int                _profilesize=0;
00058   med_int                _ret=-1;
00059 
00060 
00061   _ret = _MEDmeshnEntity(fid,  meshname, numdt, numit,entitype,  geotype,
00062                        datatype, cmode, MED_GLOBAL_PFLMODE,_profilename, &_profilesize,
00063                        changement, transformation );
00064 
00065   if ( strlen(_profilename) || (_profilesize > 0) ) {
00066     MED_ERR_(_ret,MED_ERR_EXIST,MED_ERR_PROFILE,_profilename);
00067     goto ERROR;
00068   }
00069 
00070  ERROR:
00071   return _ret;
00072 }