mmg3d
mmg3d.c File Reference

Main file for MMG3D executable: perform 3d mesh adaptation. More...

#include "mmg3d.h"
Include dependency graph for mmg3d.c:

Functions

static void MMG5_endcod (void)
 
static int MMG5_countLocalParamAtTet (MMG5_pMesh mesh, MMG5_iNode **bdyRefs)
 
static int MMG5_writeLocalParamAtTet (MMG5_pMesh mesh, MMG5_iNode *bdryRefs, FILE *out)
 
static int MMG3D_writeLocalParam (MMG5_pMesh mesh)
 
static int MMG3D_defaultOption (MMG5_pMesh mesh, MMG5_pSol met, MMG5_pSol sol)
 
int main (int argc, char *argv[])
 

Variables

mytime MMG5_ctim [TIMEMAX]
 

Detailed Description

Main file for MMG3D executable: perform 3d mesh adaptation.

Author
Charles Dapogny (UPMC)
Cécile Dobrzynski (Bx INP/Inria/UBordeaux)
Pascal Frey (UPMC)
Algiane Froehly (Inria/UBordeaux)
Version
5

Function Documentation

◆ main()

int main ( int  argc,
char *  argv[] 
)
Parameters
argcnumber of command line arguments.
argvcommand line arguments.
Returns
MMG5_SUCCESS if success.
MMG5_LOWFAILURE if failed but a conform mesh is saved.
MMG5_STRONGFAILURE if failed and we can't save the mesh.

Main program for MMG3D executable: perform mesh adaptation.

Save files at medit or Gmsh format

Here is the call graph for this function:

◆ MMG3D_defaultOption()

static int MMG3D_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 (ls or disp).
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.

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

◆ MMG3D_writeLocalParam()

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

Write a DEFAULT.mmg3d 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

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

◆ MMG5_countLocalParamAtTet()

static int MMG5_countLocalParamAtTet ( 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 tetrahedra if success, 0 otherwise.

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

Count the number of different boundary references and list it

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.

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

◆ MMG5_writeLocalParamAtTet()

static int MMG5_writeLocalParamAtTet ( 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 tetrahedra in the parameter file.

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

Variable Documentation

◆ MMG5_ctim

mytime MMG5_ctim[TIMEMAX]