mmg2d
libmmgcommon.h
Go to the documentation of this file.
1 /* =============================================================================
2 ** This file is part of the mmg software package for the tetrahedral
3 ** mesh modification.
4 ** Copyright (c) Bx INP/CNRS/Inria/UBordeaux/UPMC, 2004-
5 **
6 ** mmg is free software: you can redistribute it and/or modify it
7 ** under the terms of the GNU Lesser General Public License as published
8 ** by the Free Software Foundation, either version 3 of the License, or
9 ** (at your option) any later version.
10 **
11 ** mmg is distributed in the hope that it will be useful, but WITHOUT
12 ** ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 ** FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
14 ** License for more details.
15 **
16 ** You should have received a copy of the GNU Lesser General Public
17 ** License and of the GNU General Public License along with mmg (in
18 ** files COPYING.LESSER and COPYING). If not, see
19 ** <http://www.gnu.org/licenses/>. Please read their terms carefully and
20 ** use this copy of the mmg distribution only if you accept them.
21 ** =============================================================================
22 */
23 
35 #ifndef MMGLIBCOMMON_H
36 #define MMGLIBCOMMON_H
37 
38 #include <stdarg.h>
39 
40 #include "chrono.h"
41 
42 #ifdef __cplusplus
43 extern "C" {
44 #endif
45 
46 #include "libmmgtypes.h"
47 
48 /*----------------------------- functions header -----------------------------*/
49 /* Initialization functions */
75 
76 /* init file names */
110 int MMG5_Set_outputMeshName(MMG5_pMesh mesh, const char* meshout);
128 int MMG5_Set_inputSolName(MMG5_pMesh mesh,MMG5_pSol sol, const char* solin);
146 int MMG5_Set_outputSolName(MMG5_pMesh mesh,MMG5_pSol sol, const char* solout);
147 
159 
160 /* deallocations */
162 
176 
189 extern int MMG5_Set_defaultTruncatureSizes(MMG5_pMesh mesh,char sethmin,char sethmax);
190 
202 int MMG5_Compute_constantSize(MMG5_pMesh mesh,MMG5_pSol met,double *hsize);
203 
204 /* Enum utilities */
213 const char* MMG5_Get_entitiesName(enum MMG5_entities ent);
214 
223 const char* MMG5_Get_typeName(enum MMG5_type typ);
224 
225 #ifdef __cplusplus
226 }
227 #endif
228 
229 #endif
int MMG5_Set_defaultTruncatureSizes(MMG5_pMesh mesh, char sethmin, char sethmax)
Definition: API_functions.c:458
MMG5_type
Type of solutions.
Definition: libmmgtypes.h:173
void MMG5_mmgFree_names(MMG5_pMesh mesh, MMG5_pSol met)
Definition: API_functions.c:434
int MMG5_Set_outputSolName(MMG5_pMesh mesh, MMG5_pSol sol, const char *solout)
Definition: API_functions.c:302
Definition: libmmgtypes.h:563
void() MMG5_Init_parameters(MMG5_pMesh mesh)
Definition: API_functions.c:51
const char * MMG5_Get_typeName(enum MMG5_type typ)
Definition: API_functions.c:563
const char * MMG5_Get_entitiesName(enum MMG5_entities ent)
Definition: API_functions.c:540
MMG5_pMesh MMG5_pSol * sol
Definition: API_functionsf_2d.c:63
MMG5_pMesh * mesh
Definition: API_functionsf_2d.c:63
MMG5_pMesh char * meshin
Definition: API_functionsf_2d.c:629
MMG5_entities
Type of mesh entities.
Definition: libmmgtypes.h:184
void MMG5_Init_fileNames(MMG5_pMesh mesh, MMG5_pSol sol)
Definition: API_functions.c:121
void MMG5_Free_structures(MMG5_pMesh mesh, MMG5_pSol sol)
Definition: API_functions.c:401
MMG mesh structure.
Definition: libmmgtypes.h:509
int MMG5_Set_outputMeshName(MMG5_pMesh mesh, const char *meshout)
Definition: API_functions.c:225
int MMG5_Compute_constantSize(MMG5_pMesh mesh, MMG5_pSol met, double *hsize)
Definition: API_functions.c:487
int MMG5_Set_inputSolName(MMG5_pMesh mesh, MMG5_pSol sol, const char *solin)
Definition: API_functions.c:177
void MMG5_Set_constantSize(MMG5_pMesh mesh, MMG5_pSol met, double hsiz)
Definition: API_functions.c:349
int MMG5_Set_inputMeshName(MMG5_pMesh mesh, const char *meshin)
Definition: API_functions.c:141
! double hsiz
Definition: libmmgtypesf.h:495