mmgs
mmgs.c File Reference

Main file for MMGS executable: perform surface mesh adaptation. More...

#include "mmgs.h"
#include <math.h>
Include dependency graph for mmgs.c:

Functions

static void _MMG5_endcod ()
 
static int _MMG5_parsop (MMG5_pMesh mesh, MMG5_pSol met)
 
static int _MMGS_writeLocalParam (MMG5_pMesh mesh)
 
static int _MMGS_defaultOption (MMG5_pMesh mesh, MMG5_pSol met)
 
int main (int argc, char *argv[])
 

Variables

mytime MMG5_ctim [TIMEMAX]
 

Detailed Description

Main file for MMGS executable: perform surface mesh adaptation.

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

Function Documentation

◆ _MMG5_endcod()

static void _MMG5_endcod ( )
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_parsop()

static int _MMG5_parsop ( MMG5_pMesh  mesh,
MMG5_pSol  met 
)
static
Parameters
meshpointer toward the mesh structure.
metpointer toward the sol structure.
Returns
1.

Read local parameters file. This file must have the same name as the mesh with the .mmgs extension or must be named DEFAULT.mmgs.

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

◆ _MMGS_defaultOption()

static int _MMGS_defaultOption ( MMG5_pMesh  mesh,
MMG5_pSol  met 
)
inlinestatic
Parameters
meshpointer toward the mesh structure.
metpointer 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.

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

◆ _MMGS_writeLocalParam()

static int _MMGS_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

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

◆ main()

int main ( int  argc,
char *  argv[] 
)
Here is the call graph for this function:

Variable Documentation

◆ MMG5_ctim

mytime MMG5_ctim[TIMEMAX]