mmg3d
|
Common part for functions used in mmgs.c and mmg3d.c files. More...
#include "mmgcommon.h"
Functions | |
void | MMG5_mmgUsage (char *prog) |
void | MMG5_paramUsage1 (void) |
void | MMG5_paramUsage2 (void) |
void | MMG5_lagUsage (void) |
void | MMG5_2d3dUsage (void) |
void | MMG5_advancedUsage (void) |
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_solTruncatureForOptim (MMG5_pMesh mesh, MMG5_pSol met) |
char * | MMG5_Get_filenameExt (char *filename) |
char * | MMG5_Get_basename (char *path) |
char * | MMG5_Get_path (char *path) |
char * | MMG5_Remove_ext (char *path, char *ext) |
int | MMG5_Get_format (char *ptr, int fmt) |
const char * | MMG5_Get_formatName (enum MMG5_Format fmt) |
Common part for functions used in mmgs.c and mmg3d.c files.
void MMG5_2d3dUsage | ( | void | ) |
Print help for common options between 2D and 3D.
void MMG5_advancedUsage | ( | void | ) |
Print help for advanced users of mmg.
|
inline |
mesh | pointer toward the mesh structure. |
bdryRefs | pointer toward the list of the boundary references. |
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
char* MMG5_Get_basename | ( | char * | path | ) |
path | string containing a filename and its path |
Extract basename from a path (allocate a string to store it).
char* MMG5_Get_filenameExt | ( | char * | filename | ) |
filename | string containing a filename |
Get the extension of the filename string. Do not consider '.o' as an extension.
int MMG5_Get_format | ( | char * | ptr, |
int | fmt | ||
) |
ptr | pointer toward the file extension (dot included) |
fmt | default file format. |
Get the wanted file format from the mesh extension. If fmt is provided, it is used as default file format (ptr==NULL), otherwise, the default file format is the medit one.
const char* MMG5_Get_formatName | ( | enum MMG5_Format | fmt | ) |
fmt | file format. |
Print the name of the file format associated to fmt.
char* MMG5_Get_path | ( | char * | path | ) |
path | string containing a filename and its path |
Remove filename from a path and return the path in a newly allocated string.
void MMG5_lagUsage | ( | void | ) |
Print help for lagrangian motion option.
void MMG5_mmgDefaultValues | ( | MMG5_pMesh | mesh | ) |
mesh | pointer toward the mesh structure. |
Print the default parameters values.
void MMG5_mmgUsage | ( | char * | prog | ) |
*prog | pointer toward the program name. |
Print help for common options of the 3 codes (first section).
void MMG5_paramUsage1 | ( | void | ) |
Print help for common parameters options of the 3 codes (first section).
void MMG5_paramUsage2 | ( | void | ) |
Print help for common options of the 3 codes (second section).
char* MMG5_Remove_ext | ( | char * | path, |
char * | ext | ||
) |
path | path from which we want to remove the extension. |
Allocate a new string and copy path without extension in it.
void MMG5_solTruncatureForOptim | ( | MMG5_pMesh | mesh, |
MMG5_pSol | met | ||
) |
mesh | pointer toward the mesh structure. |
met | pointer toward the solution structure. |
Truncate the metric computed by the DoSol function by hmax and hmin values (if setted by the user). Set hmin and hmax if they are not setted.
|
inline |
mesh | pointer toward the mesh structure. |
bdryRefs | pointer toward the list of the boundary references. |
out | pointer toward the file in which to write. |
Write the local default values at triangles in the parameter file.