Go to the documentation of this file.
35 #ifndef MMGLIBCOMMON_H
36 #define MMGLIBCOMMON_H
int MMG3D_Set_iparameter(MMG5_pMesh mesh, MMG5_pSol sol, int iparam, int val)
Definition: API_functions_3d.c:1967
int(* MMG5_compute_meanMetricAtMarkedPoints)(MMG5_pMesh, MMG5_pSol)
Definition: mmgexterns.c:34
@ MMG3D_IPARAM_noinsert
Definition: libmmg3d.h:79
int MMG5_Set_outputMeshName(MMG5_pMesh mesh, const char *meshout)
Definition: API_functions.c:225
static double MMG5_lenedgCoor_ani(double *ca, double *cb, double *sa, double *sb)
Compute edge length from edge's coordinates.
Definition: inlined_functions_3d.h:56
int(* MMG5_movbdyrefpt)(MMG5_pMesh, MMG5_pSol, MMG3D_pPROctree, int *, int, int *, int, int)
Definition: mmg3dexterns.c:15
int MMG5_movbdynompt_iso(MMG5_pMesh, MMG5_pSol, MMG3D_pPROctree, int *, int, int *, int, int)
Definition: movpt_3d.c:1126
int npar
Definition: libmmgtypes.h:447
@ MMG3D_IPARAM_optimLES
Definition: libmmg3d.h:78
int np
Definition: libmmgtypes.h:566
double c[3]
Definition: libmmgtypes.h:215
double(* MMG5_lenedg)(MMG5_pMesh, MMG5_pSol, int, MMG5_pTetra)
Definition: mmg3dexterns.c:4
double(* MMG5_lenSurfEdg)(MMG5_pMesh mesh, MMG5_pSol sol, int, int, char)
Definition: mmgexterns.c:29
@ MMG3D_IPARAM_mem
Definition: libmmg3d.h:70
static void MMG5_warnOrientation(MMG5_pMesh mesh)
Definition: mmg3d.h:530
int MMG3D_stockOptions(MMG5_pMesh mesh, MMG5_Info *info)
Definition: libmmg3d_tools.c:557
int MMG5_movintpt_ani(MMG5_pMesh mesh, MMG5_pSol met, MMG3D_pPROctree PROctree, int *list, int ilist, int improve)
Definition: anisomovpt_3d.c:55
static double MMG5_lenSurfEdg_iso(MMG5_pMesh mesh, MMG5_pSol met, int ip1, int ip2, char isedg)
Definition: inlined_functions.h:291
static double MMG5_lenSurfEdg_ani(MMG5_pMesh mesh, MMG5_pSol met, int np0, int np1, char isedg)
Definition: inlined_functions.h:198
Definition: libmmgtypes.h:339
int MMG3D_gradsiz_ani(MMG5_pMesh mesh, MMG5_pSol met)
Definition: anisosiz_3d.c:1880
Definition: libmmgtypes.h:563
int MMG3D_defsiz_iso(MMG5_pMesh mesh, MMG5_pSol met)
Definition: isosiz_3d.c:642
int MMG5_hashEdge(MMG5_pMesh mesh, MMG5_Hash *hash, int a, int b, int k)
Definition: hash.c:216
int(* MMG5_movbdynompt)(MMG5_pMesh, MMG5_pSol, MMG3D_pPROctree, int *, int, int *, int, int)
Definition: mmg3dexterns.c:16
int(* MMG3D_gradsizreq)(MMG5_pMesh, MMG5_pSol)
Definition: mmg3dexterns.c:10
int MMG3D_hashTetra(MMG5_pMesh mesh, int pack)
Definition: hash_3d.c:180
double(* MMG3D_lenedgCoor)(double *ca, double *cb, double *sa, double *sb)
Definition: mmg3dexterns.c:3
static double MMG5_lenedg_ani(MMG5_pMesh mesh, MMG5_pSol met, int ia, MMG5_pTetra pt)
Definition: inlined_functions_3d.h:200
int MMG3D_Get_tetsFromTria(MMG5_pMesh mesh, int ktri, int ktet[2], int iface[2])
Definition: libmmg3d_tools.c:704
@ MMG5_Triangle
Definition: libmmgtypes.h:188
int cc
Definition: libmmgtypes.h:275
int(* MMG5_interp4bar)(MMG5_pMesh, MMG5_pSol, int, int, double *)
Definition: mmg3dexterns.c:12
char * namein
Definition: libmmgtypes.h:573
int(* MMG3D_defsiz)(MMG5_pMesh, MMG5_pSol)
Definition: mmg3dexterns.c:8
static double MMG5_lenedg_iso(MMG5_pMesh mesh, MMG5_pSol met, int ia, MMG5_pTetra pt)
Definition: inlined_functions_3d.h:230
char iso
Definition: libmmgtypes.h:453
int size
Definition: libmmgtypes.h:569
@ MMG3D_IPARAM_numberOfLocalParam
Definition: libmmg3d.h:83
int MMG3D_mmg3dmov(MMG5_pMesh mesh, MMG5_pSol met, MMG5_pSol disp)
Definition: libmmg3d.c:1131
Identic as MMG5_HGeom but use MMG5_hedge to store edges instead of MMG5_hgeom (memory economy).
Definition: libmmgtypes.h:499
int MMG3D_defsiz_ani(MMG5_pMesh mesh, MMG5_pSol met)
Definition: anisosiz_3d.c:1255
#define ON
Definition: chrono.h:43
int MMG3D_PROctreein_iso(MMG5_pMesh, MMG5_pSol, MMG3D_pPROctree, int, double)
Definition: PRoctree_3d.c:1137
MMG5_pPoint point
Definition: libmmgtypes.h:542
void MMG5_Init_fileNames(MMG5_pMesh mesh, MMG5_pSol sol)
Definition: API_functions.c:121
const char * MMG5_Get_typeName(enum MMG5_type typ)
Definition: API_functions.c:563
int MMG5_scaleMesh(MMG5_pMesh mesh, MMG5_pSol met)
Definition: scalem.c:89
@ MMG3D_DPARAM_angleDetection
Definition: libmmg3d.h:87
MMG5_entities
Type of mesh entities.
Definition: libmmgtypes.h:184
int MMG5_intmet_iso(MMG5_pMesh mesh, MMG5_pSol met, int k, char i, int ip, double s)
Definition: intmet_3d.c:131
double MMG5_caltri_iso(MMG5_pMesh mesh, MMG5_pSol met, MMG5_pTria ptt)
Definition: quality.c:198
#define MMG3D_ALPHAD
Definition: mmg3d.h:118
static const unsigned char MMG5_idir[4][3]
idir[i]: vertices of face opposite to vertex i
Definition: mmg3d.h:145
int np
Definition: libmmgtypes.h:516
int MMG5_Set_outputSolName(MMG5_pMesh mesh, MMG5_pSol sol, const char *solout)
Definition: API_functions.c:302
int(* MMG5_movintpt)(MMG5_pMesh, MMG5_pSol, MMG3D_pPROctree, int *, int, int)
Definition: mmg3dexterns.c:13
@ MMG3D_IPARAM_optim
Definition: libmmg3d.h:77
int MMG5_Set_defaultTruncatureSizes(MMG5_pMesh mesh, char sethmin, char sethmax)
Definition: API_functions.c:458
unsigned char optim
Definition: libmmgtypes.h:457
int MMG5_movbdyridpt_iso(MMG5_pMesh, MMG5_pSol, MMG3D_pPROctree, int *, int, int *, int, int)
Definition: movpt_3d.c:1474
void MMG5_mmgDefaultValues(MMG5_pMesh mesh)
Definition: mmg.c:80
@ MMG3D_IPARAM_nosurf
Definition: libmmg3d.h:82
@ MMG5_Tetrahedron
Definition: libmmgtypes.h:189
int MMG3D_Set_inputSolName(MMG5_pMesh mesh, MMG5_pSol sol, const char *solin)
Definition: API_functions_3d.c:67
int ne
Definition: libmmgtypes.h:516
int MMG3D_mmg3dcheck(MMG5_pMesh mesh, MMG5_pSol met, double critmin, double lmin, double lmax, int *eltab, char metRidTyp)
Definition: libmmg3d_tools.c:576
int * adja
Definition: libmmgtypes.h:529
MMG5_pTria tria
Definition: libmmgtypes.h:548
int MMG5_interp4bar_iso(MMG5_pMesh mesh, MMG5_pSol met, int k, int ip, double cb[4])
Definition: intmet_3d.c:308
int MMG5_movbdynompt_ani(MMG5_pMesh mesh, MMG5_pSol met, MMG3D_pPROctree PROctree, int *listv, int ilistv, int *lists, int ilists, int improve)
Definition: anisomovpt_3d.c:1028
int MMG3D_Set_constantSize(MMG5_pMesh mesh, MMG5_pSol met)
Definition: libmmg3d_tools.c:942
int MMG5_intmet_ani(MMG5_pMesh mesh, MMG5_pSol met, int k, char i, int ip, double s)
Definition: intmet_3d.c:51
int mark
Definition: libmmgtypes.h:523
MMG5_pMesh * mesh
Definition: API_functionsf_3d.c:65
void MMG3D_setfunc(MMG5_pMesh mesh, MMG5_pSol met)
Definition: libmmg3d_tools.c:35
void MMG3D_destockOptions(MMG5_pMesh mesh, MMG5_Info *info)
Definition: libmmg3d_tools.c:570
API headers for the mmg3d library.
void chrono(int cmode, mytime *ptt)
Function to measure time.
Definition: chrono.c:49
void MMG3D_Free_topoTables(MMG5_pMesh mesh)
Definition: libmmg3d.c:61
@ MMG3D_DPARAM_hmin
Definition: libmmg3d.h:88
@ MMG3D_DPARAM_hgradreq
Definition: libmmg3d.h:93
double MMG5_caltri_ani(MMG5_pMesh mesh, MMG5_pSol met, MMG5_pTria ptt)
Definition: quality.c:115
@ MMG3D_DPARAM_hgrad
Definition: libmmg3d.h:92
const char * MMG5_Get_entitiesName(enum MMG5_entities ent)
Definition: API_functions.c:540
Structure to store points of a MMG mesh.
Definition: libmmgtypes.h:214
char * nameout
Definition: libmmgtypes.h:574
int(* MMG3D_gradsiz)(MMG5_pMesh, MMG5_pSol)
Definition: mmg3dexterns.c:9
int(* MMG5_movbdyregpt)(MMG5_pMesh, MMG5_pSol, MMG3D_pPROctree, int *, int, int *, int, int, int)
Definition: mmg3dexterns.c:14
Chrono object.
Definition: chrono.h:58
int MMG5_hashNew(MMG5_pMesh mesh, MMG5_Hash *hash, int hsiz, int hmax)
Definition: hash.c:333
double * m
Definition: libmmgtypes.h:571
int MMG5_Set_inputMeshName(MMG5_pMesh mesh, const char *meshin)
Definition: API_functions.c:141
int(* MMG3D_PROctreein)(MMG5_pMesh, MMG5_pSol, MMG3D_pPROctree, int, double)
Definition: mmg3dexterns.c:19
void MMG5_Set_constantSize(MMG5_pMesh mesh, MMG5_pSol met, double hsiz)
Definition: API_functions.c:349
#define MMG5_STRONGFAILURE
Definition: libmmgtypes.h:56
int MMG5_interp4bar_ani(MMG5_pMesh mesh, MMG5_pSol met, int k, int ip, double cb[4])
Definition: intmet_3d.c:378
static double MMG5_caltet_ani(MMG5_pMesh mesh, MMG5_pSol met, MMG5_pTetra pt)
Definition: inlined_functions_3d.h:417
int MMG3D_doSol(MMG5_pMesh mesh, MMG5_pSol met)
Definition: libmmg3d_tools.c:810
int MMG3D_usage(char *prog)
Definition: libmmg3d_tools.c:117
int MMG5_Compute_constantSize(MMG5_pMesh mesh, MMG5_pSol met, double *hsiz)
Definition: API_functions.c:487
int MMG3D_memOption(MMG5_pMesh mesh)
Definition: zaldy_3d.c:235
int MMG5_compute_meanMetricAtMarkedPoints_ani(MMG5_pMesh mesh, MMG5_pSol met)
Definition: anisosiz.c:1690
@ MMG3D_DPARAM_hmax
Definition: libmmg3d.h:89
int MMG5_movbdyregpt_iso(MMG5_pMesh, MMG5_pSol, MMG3D_pPROctree, int *, int, int *, int, int, int)
Definition: movpt_3d.c:357
char imprim
Definition: libmmgtypes.h:453
int MMG3D_Set_localParameter(MMG5_pMesh mesh, MMG5_pSol sol, int typ, int ref, double hmin, double hmax, double hausd)
Definition: API_functions_3d.c:2209
#define MMG5_SUCCESS
Definition: libmmgtypes.h:40
double(* MMG5_lenedgspl)(MMG5_pMesh, MMG5_pSol, int, MMG5_pTetra)
Definition: mmg3dexterns.c:5
int MMG5_movbdyridpt_ani(MMG5_pMesh mesh, MMG5_pSol met, MMG3D_pPROctree PROctree, int *listv, int ilistv, int *lists, int ilists, int improve)
Definition: anisomovpt_3d.c:1375
#define MMG5_LOWFAILURE
Definition: libmmgtypes.h:48
static double MMG5_lenedg33_ani(MMG5_pMesh mesh, MMG5_pSol met, int ia, MMG5_pTetra pt)
Definition: inlined_functions_3d.h:94
int MMG5_hashPop(MMG5_Hash *hash, int a, int b)
Definition: hash_3d.c:778
int mem
Definition: libmmgtypes.h:447
void() MMG5_Init_parameters(MMG5_pMesh mesh)
Definition: API_functions.c:51
@ MMG3D_IPARAM_octree
Definition: libmmg3d.h:86
void MMG5_mmgUsage(char *prog)
Definition: mmg.c:44
int MMG5_movbdyrefpt_ani(MMG5_pMesh mesh, MMG5_pSol met, MMG3D_pPROctree PROctree, int *listv, int ilistv, int *lists, int ilists, int improve)
Definition: anisomovpt_3d.c:678
#define OFF
Definition: chrono.h:44
void printim(double elps, char *stim)
Print real time.
Definition: chrono.c:149
int MMG3D_Set_outputSolName(MMG5_pMesh mesh, MMG5_pSol sol, const char *solout)
Definition: API_functions_3d.c:76
MMG5_pTetra tetra
Definition: libmmgtypes.h:544
@ MMG5_Tensor
Definition: libmmgtypes.h:177
void MMG5_Set_constantSize(MMG5_pMesh mesh, MMG5_pSol met, double hsiz)
Definition: API_functions.c:349
void tminit(mytime *t, int maxtim)
Initialize mytime object.
Definition: chrono.c:120
int MMG3D_Get_tetFromTria(MMG5_pMesh mesh, int ktri, int *ktet, int *iface)
Definition: libmmg3d_tools.c:685
double MMG5_lenedgCoor_iso(double *ca, double *cb, double *ma, double *mb)
Compute edge length from edge's coordinates.
Definition: isosiz_3d.c:59
int MMG3D_PROctreein_ani(MMG5_pMesh, MMG5_pSol, MMG3D_pPROctree, int, double)
Definition: PRoctree_3d.c:1217
double(* MMG5_caltri)(MMG5_pMesh mesh, MMG5_pSol met, MMG5_pTria ptt)
Definition: mmg3dexterns.c:7
int nt
Definition: libmmgtypes.h:516
MMG5_hedge * item
Definition: libmmgtypes.h:501
int MMG3D_Set_solSize(MMG5_pMesh mesh, MMG5_pSol sol, int typEntity, int np, int typSol)
Definition: API_functions_3d.c:109
int MMG5_Set_inputSolName(MMG5_pMesh mesh, MMG5_pSol sol, const char *solin)
Definition: API_functions.c:177
MMG mesh structure.
Definition: libmmgtypes.h:509
int(* MMG5_intmet)(MMG5_pMesh, MMG5_pSol, int, char, int, double)
Definition: mmg3dexterns.c:11
void MMG3D_searchqua(MMG5_pMesh mesh, MMG5_pSol met, double critmin, int *eltab, char metRidTyp)
Definition: libmmg3d_tools.c:659
@ MMG3D_IPARAM_debug
Definition: libmmg3d.h:71
static double MMG3D_caltetLES_iso(MMG5_pMesh mesh, MMG5_pSol met, MMG5_pTetra pt)
Definition: inlined_functions_3d.h:283
double MMG5_caltet33_ani(MMG5_pMesh mesh, MMG5_pSol met, MMG5_pTetra pt)
Definition: quality_3d.c:90
int MMG5_movintpt_iso(MMG5_pMesh, MMG5_pSol, MMG3D_pPROctree, int *, int, int)
Definition: movpt_3d.c:55
static void MMG3D_Set_commonFunc()
Definition: mmg3d.h:549
double hmax
Definition: libmmgtypes.h:445
char * namein
Definition: libmmgtypes.h:553
int PROctree
Definition: libmmgtypes.h:450
@ MMG3D_IPARAM_iso
Definition: libmmg3d.h:73
MMG5_Info info
Definition: libmmgtypes.h:552
int MMG5_Compute_constantSize(MMG5_pMesh mesh, MMG5_pSol met, double *hsize)
Definition: API_functions.c:487
@ MMG3D_IPARAM_nomove
Definition: libmmg3d.h:81
int(* MMG5_movbdyridpt)(MMG5_pMesh, MMG5_pSol, MMG3D_pPROctree, int *, int, int *, int, int)
Definition: mmg3dexterns.c:17
@ MMG3D_DPARAM_hausd
Definition: libmmg3d.h:91
int MMG5_movbdyrefpt_iso(MMG5_pMesh, MMG5_pSol, MMG3D_pPROctree, int *, int, int *, int, int)
Definition: movpt_3d.c:773
int MMG3D_defaultValues(MMG5_pMesh mesh)
Definition: libmmg3d_tools.c:152
int npmax
Definition: libmmgtypes.h:516
@ MMG3D_DPARAM_hsiz
Definition: libmmg3d.h:90
void MMG5_Free_structures(MMG5_pMesh mesh, MMG5_pSol sol)
Definition: API_functions.c:401
static const unsigned char MMG5_iare[6][2]
vertices of extremities of the edges of the tetra
Definition: mmg3d.h:153
int MMG3D_parsop(MMG5_pMesh mesh, MMG5_pSol met)
Definition: libmmg3d_tools.c:476
int MMG5_cavity_ani(MMG5_pMesh mesh, MMG5_pSol met, int iel, int ip, int *list, int lon, double volmin)
Definition: delaunay_3d.c:582
MMG5_pMesh char int int * retval
Definition: API_functionsf_3d.c:875
@ MMG3D_IPARAM_verbose
Definition: libmmg3d.h:69
FORTRAN_NAME(MMG3D_MMG3DLIB, mmg3d_mmg3dlib,(MMG5_pMesh *mesh, MMG5_pSol *met, int *retval),(mesh, met, retval))
Definition: libmmg3df.c:50
int MMG3D_gradsizreq_iso(MMG5_pMesh mesh, MMG5_pSol met)
Definition: isosiz_3d.c:1137
tmp[*strlen0]
Definition: API_functionsf_3d.c:881
Store input parameters of the run.
Definition: libmmgtypes.h:443
int MMG3D_mmg3dlib(MMG5_pMesh mesh, MMG5_pSol met)
Definition: libmmg3d.c:739
@ MMG3D_IPARAM_noswap
Definition: libmmg3d.h:80
char * nameout
Definition: libmmgtypes.h:554
int MMG5_cavity_iso(MMG5_pMesh mesh, MMG5_pSol sol, int iel, int ip, int *list, int lon, double volmin)
Definition: delaunay_3d.c:741
int MMG3D_gradsizreq_ani(MMG5_pMesh mesh, MMG5_pSol met)
Definition: anisosiz_3d.c:2019
int MMG3D_Set_dparameter(MMG5_pMesh mesh, MMG5_pSol sol, int dparam, double val)
Definition: API_functions_3d.c:2158
int ier
Definition: API_functionsf_3d.c:839
strncpy(tmp, filename, *strlen0)
void MMG5_mmgFree_names(MMG5_pMesh mesh, MMG5_pSol met)
Definition: API_functions.c:434
static double MMG5_caltet_iso(MMG5_pMesh mesh, MMG5_pSol met, MMG5_pTetra pt)
Definition: inlined_functions_3d.h:387
int MMG3D_mmg3dls(MMG5_pMesh mesh, MMG5_pSol met)
Definition: libmmg3d.c:948
char lag
Definition: libmmgtypes.h:453
@ MMG3D_IPARAM_lag
Definition: libmmg3d.h:76
int MMG3D_Get_adjaTet(MMG5_pMesh mesh, int kel, int listet[4])
Return adjacent elements of a tetrahedron.
Definition: libmmg3d_tools.c:100
MMG5_type
Type of solutions.
Definition: libmmgtypes.h:173
double(* MMG5_caltet)(MMG5_pMesh mesh, MMG5_pSol met, MMG5_pTetra pt)
Definition: mmg3dexterns.c:6
int MMG5_compute_meanMetricAtMarkedPoints_iso(MMG5_pMesh mesh, MMG5_pSol met)
Definition: isosiz.c:167
@ MMG3D_IPARAM_opnbdy
Definition: libmmg3d.h:75
unsigned char optimLES
Definition: libmmgtypes.h:457
@ MMG3D_IPARAM_angle
Definition: libmmg3d.h:72
double hsiz
Definition: libmmgtypes.h:445
int ntmax
Definition: libmmgtypes.h:516
int MMG3D_Set_inputMeshName(MMG5_pMesh mesh, const char *meshin)
Definition: API_functions_3d.c:62
@ MMG3D_IPARAM_nofem
Definition: libmmg3d.h:74
#define TIMEMAX
Definition: chrono.h:49
int nemax
Definition: libmmgtypes.h:516
int MMG3D_searchlen(MMG5_pMesh mesh, MMG5_pSol met, double lmin, double lmax, int *eltab, char metRidTyp)
Definition: libmmg3d_tools.c:749
@ MMG5_Vertex
Definition: libmmgtypes.h:186
@ MMG3D_DPARAM_ls
Definition: libmmg3d.h:94
int MMG3D_Set_outputMeshName(MMG5_pMesh mesh, const char *meshout)
Definition: API_functions_3d.c:71
int MMG5_movbdyregpt_ani(MMG5_pMesh mesh, MMG5_pSol met, MMG3D_pPROctree PROctree, int *listv, int ilistv, int *lists, int ilists, int improveSurf, int improveVol)
Definition: anisomovpt_3d.c:195
int(* MMG5_cavity)(MMG5_pMesh, MMG5_pSol, int, int, int *, int, double)
Definition: mmg3dexterns.c:18
@ MMG3D_IPARAM_renum
Definition: libmmg3d.h:84
int MMG3D_gradsiz_iso(MMG5_pMesh mesh, MMG5_pSol met)
Definition: isosiz_3d.c:1053
int v[4]
Definition: libmmgtypes.h:341