mmg2d
mmg.c File Reference

Common part for functions used in mmgs.c and mmg3d.c files. More...

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

Functions

void MMG5_mmgUsage (char *prog)
 
void MMG5_mmgDefaultValues (MMG5_pMesh mesh)
 
int MMG5_countLocalParamAtTri (MMG5_pMesh mesh, MMG5_iNode **bdryRefs)
 
int MMG5_writeLocalParamAtTri (MMG5_pMesh mesh, MMG5_iNode *bdryRefs, FILE *out)
 
void MMG5_chooseOutputFormat (MMG5_pMesh mesh, int *msh)
 

Detailed Description

Common part for functions used in mmgs.c and mmg3d.c files.

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

Function Documentation

◆ MMG5_chooseOutputFormat()

void MMG5_chooseOutputFormat ( MMG5_pMesh  mesh,
int *  msh 
)
Parameters
meshpointer toward the mesh structure.
meshpointer toward the msh value.

Update the msh value if we detect that the user want to force output at Gmsh or Medit format.

Here is the caller graph for this function:

◆ MMG5_countLocalParamAtTri()

int MMG5_countLocalParamAtTri ( MMG5_pMesh  mesh,
MMG5_iNode **  bdryRefs 
)
inline
Parameters
meshpointer toward the mesh structure.
bdryRefspointer toward the list of the boundary references.
Returns
npar, the number of local parameters at triangles if success, 0 otherwise.

Count the local default values at triangles 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_mmgDefaultValues()

void MMG5_mmgDefaultValues ( MMG5_pMesh  mesh)
Parameters
meshpointer toward the mesh structure.
Returns
0 if fail, 1 if success.

Print the default parameters values.

Here is the caller graph for this function:

◆ MMG5_mmgUsage()

void MMG5_mmgUsage ( char *  prog)
Parameters
*progpointer toward the program name.

Print help for common options of mmg3d and mmgs.

Here is the caller graph for this function:

◆ MMG5_writeLocalParamAtTri()

int MMG5_writeLocalParamAtTri ( MMG5_pMesh  mesh,
MMG5_iNode *  bdryRefs,
FILE *  out 
)
inline
Parameters
meshpointer toward the mesh structure.
bdryRefspointer toward the list of the boundary references.
nparnumber of local param at triangles.
outpointer toward the file in which to write.
Returns
1 if success, 0 otherwise.

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

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