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 <med_outils.h>
22 #include <string.h>
23 #include <stdlib.h>
24 
25 /**\ingroup MEDmesh
26   \brief \MEDmeshElementConnectivityWrBrief
27   \param fid \fid
28   \param meshname \meshname
29   \param numdt \numdt
30   \param numit \numit
31   \param dt \dt
32   \param entitype \entitype
33   \param geotype \geotype
34   \param cmode \cmode
35   \param switchmode \switchmode
36   \param nentity \nentity
37   \param connectivity \connectivity
38   \return  \error
39   \details \MEDmeshElementConnectivityWrDetails
40  */
41 
MEDmeshElementConnectivityWr(const med_idt fid,const char * const meshname,const med_int numdt,const med_int numit,const med_float dt,const med_entity_type entitype,const med_geometry_type geotype,const med_connectivity_mode cmode,const med_switch_mode switchmode,const med_int nentity,const med_int * const connectivity)42 med_err MEDmeshElementConnectivityWr(const med_idt               fid,
43 				     const char*  const          meshname,
44 				     const med_int               numdt,
45 				     const med_int               numit,
46 				     const med_float             dt,
47 				     const med_entity_type       entitype,
48 				     const med_geometry_type     geotype,
49 				     const med_connectivity_mode cmode,
50 				     const med_switch_mode       switchmode,
51 				     const med_int               nentity,
52 				     const med_int* const  connectivity)
53 {
54 
55   return _MEDmeshAdvancedWr(fid,
56 			    meshname,
57 			    MED_CONNECTIVITY,
58 			    MED_NO_NAME,
59 			    MED_INTERNAL_UNDEF,
60 			    numdt,
61 			    numit,
62 			    dt,
63 			    entitype,
64 			    geotype,
65 			    cmode,
66 			    MED_UNDEF_STMODE,
67 			    MED_NO_PROFILE,
68 			    switchmode,
69 			    MED_ALL_CONSTITUENT,
70 			    NULL,
71 			    nentity,
72 			    connectivity);
73 
74 }
75