mmg2d
API_functions.c File Reference

C API functions definitions for MMG library. More...

#include "mmgcommon.h"
Include dependency graph for API_functions.c:

Functions

void _MMG5_Init_parameters (MMG5_pMesh mesh)
 
void MMG5_Init_fileNames (MMG5_pMesh mesh, MMG5_pSol sol)
 
int MMG5_Set_inputMeshName (MMG5_pMesh mesh, const char *meshin)
 
int MMG5_Set_inputSolName (MMG5_pMesh mesh, MMG5_pSol sol, const char *solin)
 
int MMG5_Set_outputMeshName (MMG5_pMesh mesh, const char *meshout)
 
int MMG5_Set_outputSolName (MMG5_pMesh mesh, MMG5_pSol sol, const char *solout)
 
void MMG5_Free_structures (MMG5_pMesh mesh, MMG5_pSol sol)
 
void MMG5_mmgFree_names (MMG5_pMesh mesh, MMG5_pSol met)
 
int MMG5_Set_defaultTruncatureSizes (MMG5_pMesh mesh, char sethmin, char sethmax)
 
int MMG5_Compute_constantSize (MMG5_pMesh mesh, MMG5_pSol met, double *hsiz)
 

Detailed Description

C API functions definitions for MMG library.

Author
Charles Dapogny (UPMC)
Cécile Dobrzynski (Bx INP/Inria/UBordeaux)
Pascal Frey (UPMC)
Algiane Froehly (Inria/UBordeaux)
Version
5
Date
03 2014
Note
This file contains some internal functions for the API, see the common/libmmgcommon.h, mmgs/libmmgs.h and mmg3d/libmmg3d.h header files for the documentation of all the usefull user's API functions.

C API for MMG library.

Function Documentation

◆ _MMG5_Init_parameters()

void _MMG5_Init_parameters ( MMG5_pMesh  mesh)
Parameters
meshpointer toward the mesh structure.

Initialization of the input parameters (stored in the Info structure).

MMG5_IPARAM_verbose = 1















MMG*_IPARAM_iso = 0














MMG5_IPARAM_mem = -1













MMG5_IPARAM_debug = 0












MMG5_IPARAM_npar = 0











MMG5_IPARAM_noinsert = 0










MMG5_IPARAM_noswap = 0









MMG5_IPARAM_nomove = 0








MMG5_IPARAM nmat = 0







MMG5_DPARAM_angleDetection = _MMG5_ANGEDG






MMG5_DPARAM_hmin = 0.001 $\times$ bounding box size;





MMG5_DPARAM_hmax = double of the bounding box size




MMG5_DPARAM_hsiz= -1.



MMG5_DPARAM_hausd = 0.01


MMG5_DPARAM_hgrad = 1.3

MMG5_PPARAM = NULL
MMG3D_IPARAM_lag = -1 used by mmg3d only but need to be negative in the scaleMesh function

Here is the call graph for this function:
Here is the caller graph for this function:

◆ MMG5_Compute_constantSize()

int MMG5_Compute_constantSize ( MMG5_pMesh  mesh,
MMG5_pSol  met,
double *  hsize 
)
Parameters
meshpointer toward the mesh structure.
metpointer toward the metric.
hsizcomputed constant size to impose.
Returns
1 if success, 0 if fail

Compute the constant size to impose according to hmin and hmax and store it in hsiz. Fill hmin and hamx if they are not setted by the user.

Here is the caller graph for this function:

◆ MMG5_Free_structures()

void MMG5_Free_structures ( MMG5_pMesh  mesh,
MMG5_pSol  sol 
)
Parameters
meshpointer toward the mesh structure.
solpointer toward the sol structure.

Structures unallocation before return (common structures between all codes).

Here is the caller graph for this function:

◆ MMG5_Init_fileNames()

void MMG5_Init_fileNames ( MMG5_pMesh  mesh,
MMG5_pSol  sol 
)
Parameters
meshpointer toward the mesh structure.
solpointer toward the sol structure.

Initialize file names to their default values.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ MMG5_mmgFree_names()

void MMG5_mmgFree_names ( MMG5_pMesh  mesh,
MMG5_pSol  met 
)
Parameters
meshpointer toward the mesh structure.
metpointer toward the sol structure.

File name deallocations before return.

Here is the caller graph for this function:

◆ MMG5_Set_defaultTruncatureSizes()

int MMG5_Set_defaultTruncatureSizes ( MMG5_pMesh  mesh,
char  sethmin,
char  sethmax 
)
inline
Parameters
meshpointer toward the mesh structure.
sethmin1 if hmin is already setted (>0.)
sethmax1 if hmax is already setted (>0.)
Returns
1 if success, 0 if we detect mismatch parameters

Set default values for hmin and hmax from the bounding box.

not for extern users.

Here is the caller graph for this function:

◆ MMG5_Set_inputMeshName()

int MMG5_Set_inputMeshName ( MMG5_pMesh  mesh,
const char *  meshin 
)
Parameters
meshpointer toward the mesh structure.
meshininput mesh name.
Returns
1 if success, 0 if fail

Set the name of input mesh.

Here is the caller graph for this function:

◆ MMG5_Set_inputSolName()

int MMG5_Set_inputSolName ( MMG5_pMesh  mesh,
MMG5_pSol  sol,
const char *  solin 
)
Parameters
meshpointer toward the mesh structure.
solpointer toward the sol structure.
solinname of the input solution file.
Returns
1 if success, 0 if fail

Set the name of input solution file.

Here is the caller graph for this function:

◆ MMG5_Set_outputMeshName()

int MMG5_Set_outputMeshName ( MMG5_pMesh  mesh,
const char *  meshout 
)
Parameters
meshpointer toward the mesh structure.
meshoutname of the output mesh file.
Returns
1 if success, 0 if fail.

Set the name of output mesh file.

Here is the caller graph for this function:

◆ MMG5_Set_outputSolName()

int MMG5_Set_outputSolName ( MMG5_pMesh  mesh,
MMG5_pSol  sol,
const char *  solout 
)
Parameters
meshpointer toward the mesh structure.
solpointer toward the sol structure.
soloutname of the output solution file.
Returns
0 if failed, 1 otherwise.

Set the name of output solution file.

Here is the caller graph for this function: