Mmg
Simplicial remeshers (mesh adaptation, isovalue discretization, lagrangian movement)
Functions | Variables
mmgs.c File Reference

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

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

Go to the source code of this file.

Functions

static void MMG5_endcod (void)
 
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, MMG5_pSol sol)
 
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

Definition in file mmgs.c.

Function Documentation

◆ main()

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

Definition at line 347 of file mmgs.c.

Here is the call graph for this function:

◆ MMG5_endcod()

static void MMG5_endcod ( void  )
static

Print elapsed time at end of process.

Definition at line 45 of file mmgs.c.

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.

Definition at line 64 of file mmgs.c.

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,
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 259 of file mmgs.c.

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

Definition at line 201 of file mmgs.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 39 of file mmgs.c.