Mmg
Simplicial remeshers (mesh adaptation, isovalue discretization, lagrangian movement)
Functions | Variables
mmg2d.c File Reference
#include "libmmg2d.h"
#include "libmmg2d_private.h"
Include dependency graph for mmg2d.c:

Go to the source code of this file.

Functions

static void MMG5_endcod (void)
 
static int MMG2D_countLocalParamAtEdg (MMG5_pMesh mesh, MMG5_iNode **bdyRefs)
 
static int MMG2D_writeLocalParamAtEdg (MMG5_pMesh mesh, MMG5_iNode *bdryRefs, FILE *out)
 
static int MMG2D_writeLocalParam (MMG5_pMesh mesh)
 
static int MMG2D_defaultOption (MMG5_pMesh mesh, MMG5_pSol met, MMG5_pSol sol)
 
int main (int argc, char *argv[])
 

Variables

mytime MMG5_ctim [TIMEMAX]
 

Function Documentation

◆ main()

int main ( int  argc,
char *  argv[] 
)

Definition at line 275 of file mmg2d.c.

Here is the call graph for this function:

◆ MMG2D_countLocalParamAtEdg()

static int MMG2D_countLocalParamAtEdg ( MMG5_pMesh  mesh,
MMG5_iNode **  bdyRefs 
)
inlinestatic
Parameters
meshpointer toward the mesh structure.
bdyRefspointer toward the list of the boundary references.
Returns
npar, the number of local parameters at edges if success, 0 otherwise.

Count the local default values at edges and fill the list of the boundary references.

Count the number of different boundary references and list it

Definition at line 51 of file mmg2d.c.

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

◆ MMG2D_defaultOption()

static int MMG2D_defaultOption ( MMG5_pMesh  mesh,
MMG5_pSol  met,
MMG5_pSol  sol 
)
inlinestatic
Parameters
meshpointer toward the mesh structure.
metpointer toward a sol structure (metric).
solpointer toward a sol structure (metric).
Returns
MMG5_SUCCESS if success, MMG5_LOWFAILURE if failed but a conform mesh is saved and MMG5_STRONGFAILURE if failed and we can't save the mesh.

Program to save the local default parameter file: read the mesh and metric (needed to compite the hmax/hmin parameters), scale the mesh and compute the hmax/hmin param, unscale the mesh and write the default parameter file.

Definition at line 189 of file mmg2d.c.

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

◆ MMG2D_writeLocalParam()

static int MMG2D_writeLocalParam ( MMG5_pMesh  mesh)
inlinestatic
Parameters
meshpointer toward the mesh structure.
Returns
1 if success, 0 otherwise.

Write a DEFAULT.mmg2d file containing the default values of parameters that can be locally defined.

Save the local parameters file

Write local param at triangles

Write local param at tetra

Definition at line 121 of file mmg2d.c.

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

◆ MMG2D_writeLocalParamAtEdg()

static int MMG2D_writeLocalParamAtEdg ( MMG5_pMesh  mesh,
MMG5_iNode bdryRefs,
FILE *  out 
)
inlinestatic
Parameters
meshpointer toward the mesh structure.
bdryRefspointer toward the list of the boundary references.
outpointer toward the file in which to write.
Returns
1 if success, 0 otherwise.

Write the local default values at edges in the parameter file.

Definition at line 96 of file mmg2d.c.

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

◆ MMG5_endcod()

static void MMG5_endcod ( void  )
static

Print elapsed time at end of process.

Definition at line 32 of file mmg2d.c.

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

Variable Documentation

◆ MMG5_ctim

mytime MMG5_ctim[TIMEMAX]

Definition at line 27 of file mmg2d.c.