Go to the documentation of this file.
41 #if (defined(__APPLE__) && defined(__MACH__))
42 #include <sys/sysctl.h>
43 #elif defined(__unix__) || defined(__unix) || defined(unix)
45 #elif defined(_WIN16) || defined(_WIN32) || defined(_WIN64) || defined(__WIN32__) || defined(__TOS_WIN__) || defined(__WINDOWS__)
47 #define _WIN32_WINNT 0x0500
61 #define MG_VER "5.4.3"
62 #define MG_REL "Feb. 26, 2020"
63 #define MG_CPY "Copyright (c) Bdx INP/CNRS/Inria/UPMC, 2004-"
64 #define MG_STR "&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&"
67 #define MG_SMSGN(a,b) (((double)(a)*(double)(b) > (0.0)) ? (1) : (0))
70 #define MMG5_BOXSIZE 500
73 #define MMG5_MEMMAX 800
74 #define MMG5_BITWIZE_MB_TO_B 20
75 #define MMG5_MEMPERCENT 50/100
85 #define MMG5_DISPREF 10
88 #define MMG5_MILLION 1048576
91 #define MMG5_ANGEDG 0.707106781186548
92 #define MMG5_ANGLIM -0.999999
93 #define MMG5_ATHIRD 0.333333333333333
95 #define MMG5_EPSD 1.e-30
96 #define MMG5_EPSD2 1.0e-200
97 #define MMG5_EPS 1.e-06
98 #define MMG5_EPSOK 1.e-15
99 #define MMG5_NULKAL 1.e-30
101 #define MMG5_SQR32 0.866025403784439
104 #define M_PI 3.14159265358979323846
105 #define M_PI_2 1.57079632679489661923
108 #define A64TH 0.015625
110 #define A32TH 0.03125
112 #define MMG5_MEMMIN 38
115 #define MMG5_NONSET_MEM -1
116 #define MMG5_NONSET_HMIN -1
117 #define MMG5_NONSET_HMAX -1
118 #define MMG5_NONSET_HSIZ -1
119 #define MMG5_HAUSD 0.01
120 #define MMG5_HGRAD 0.26236426446
121 #define MMG5_HGRADREQ 0.83290912294
122 #define MMG5_NOHGRAD -1
126 #define MMG5_PROCTREE 32
130 #define MMG5_HMINCOE 0.001
131 #define MMG5_HMAXCOE 2
132 #define MMG5_HMINMAXGAP 5
136 #define MG_MAX(a,b) (((a) > (b)) ? (a) : (b))
137 #define MG_MIN(a,b) (((a) < (b)) ? (a) : (b))
141 #define MG_REF (1 << 0)
142 #define MG_GEO (1 << 1)
143 #define MG_REQ (1 << 2)
144 #define MG_NOM (1 << 3)
145 #define MG_BDY (1 << 4)
146 #define MG_CRN (1 << 5)
147 #define MG_NOSURF (1 << 6)
148 #define MG_OPNBDY (1 << 7)
149 #define MG_OLDPARBDY (1 << 11)
150 #define MG_PARBDYBDY (1 << 12)
151 #define MG_PARBDY (1 << 13)
152 #define MG_NUL (1 << 14)
155 #define MG_Vert (1 << 0 )
156 #define MG_Tria (1 << 1 )
157 #define MG_Tetra (1 << 2 )
159 #define MG_VOK(ppt) (ppt && ((ppt)->tag < MG_NUL))
160 #define MG_EOK(pt) (pt && ((pt)->v[0] > 0))
162 #define MG_EDG(tag) ((tag & MG_GEO) || (tag & MG_REF))
163 #define MG_SIN(tag) ((tag & MG_CRN) || (tag & MG_REQ))
164 #define MG_RID(tag) ((!( MG_SIN(tag)||(tag & MG_NOM))) && tag & MG_GEO )
167 #define MG_SET(flag,bit) ((flag) |= (1 << (bit)))
168 #define MG_CLR(flag,bit) ((flag) &= ~(1 << (bit)))
169 #define MG_GET(flag,bit) ((flag) & (1 << (bit)))
177 #define _LIBMMG5_RETURN(mesh,met,val)do \
179 signal(SIGABRT,SIG_DFL); \
180 signal(SIGFPE,SIG_DFL); \
181 signal(SIGILL,SIG_DFL); \
182 signal(SIGSEGV,SIG_DFL); \
183 signal(SIGTERM,SIG_DFL); \
184 signal(SIGINT,SIG_DFL); \
185 mesh->npi = mesh->np; \
186 mesh->nti = mesh->nt; \
187 mesh->nai = mesh->na; \
188 mesh->nei = mesh->ne; \
189 met->npi = met->np; \
196 #define MMG5_CHK_MEM(mesh,size,string,law) do \
198 if ( (mesh)->memCur > (mesh)->memMax ) { \
199 fprintf(stderr," ## Error:"); \
200 fprintf(stderr," unable to allocate %s.\n",string); \
201 fprintf(stderr," ## Check the mesh size or "); \
202 fprintf(stderr,"increase maximal authorized memory with the -m option.\n"); \
203 (mesh)->memCur -= (size); \
211 ptr = calloc(c*s+
sizeof(
size_t),1);
224 ptr = malloc(s+
sizeof(
size_t));
235 void *
myrealloc(
void * ptr_in,
size_t s,
size_t oldsize) {
237 char *ptr_in_c = (
char*)ptr_in;
238 ptr_in_c -=
sizeof(size_t);
239 if (oldsize != *((
size_t*)ptr_in_c)) {
240 fprintf(stderr,
"myrealloc: Error: freed memory mismatch\n");
243 ptr = realloc(ptr_in_c, s+
sizeof(
size_t));
256 char * ptr_c = (
char*)ptr;
258 ptr_c = ptr_c-
sizeof(size_t);
259 s = *((
size_t*)ptr_c);
266 #define MMG5_DEL_MEM(mesh,ptr) do \
268 size_t size_to_free = myfree(ptr); \
269 (mesh)->memCur -= size_to_free; \
275 #define MMG5_ADD_MEM(mesh,size,message,law) do \
277 (mesh)->memCur += (size); \
278 MMG5_CHK_MEM(mesh,size,message,law); \
282 #define MMG5_SAFE_FREE(ptr) do \
289 #define MMG5_SAFE_CALLOC(ptr,size,type,law) do \
291 ptr = (type*)mycalloc(size,sizeof(type)); \
293 perror(" ## Memory problem: calloc"); \
299 #define MMG5_SAFE_MALLOC(ptr,size,type,law) do \
301 size_t size_to_allocate = (size)*sizeof(type); \
302 ptr = (type*)mymalloc(size_to_allocate); \
304 perror(" ## Memory problem: malloc"); \
310 #define MMG5_SAFE_REALLOC(ptr,prevSize,newSize,type,message,law) do \
313 size_t size_to_allocate = (newSize)*sizeof(type); \
315 tmp = (type *)myrealloc((ptr),size_to_allocate,(prevSize)*sizeof(type)); \
317 MMG5_SAFE_FREE(ptr); \
318 perror(" ## Memory problem: realloc"); \
326 #define MMG5_SAFE_RECALLOC(ptr,prevSize,newSize,type,message,law) do \
329 size_t size_to_allocate = (newSize)*sizeof(type); \
331 tmp = (type *)myrealloc((ptr),size_to_allocate,(prevSize)*sizeof(type)); \
333 MMG5_SAFE_FREE(ptr); \
334 perror(" ## Memory problem: realloc"); \
340 if ( newSize > prevSize ) { \
341 memset(&((ptr)[prevSize]),0,((newSize)-(prevSize))*sizeof(type)); \
348 #define MMG5_TAB_RECALLOC(mesh,ptr,initSize,wantedGap,type,message,law) do \
352 assert ( mesh->memCur < mesh->memMax ); \
354 gap = (int)(wantedGap * initSize); \
355 if ( !gap ) gap = 1; \
357 if ( mesh->memMax < mesh->memCur + gap*sizeof(type) ) { \
358 gap = (int)((mesh->memMax-mesh->memCur)/sizeof(type)); \
360 fprintf(stderr," ## Error:"); \
361 fprintf(stderr," unable to allocate %s.\n",message); \
362 fprintf(stderr," ## Check the mesh size or "); \
363 fprintf(stderr,"increase maximal authorized memory with the -m option.\n"); \
368 MMG5_ADD_MEM(mesh,gap*sizeof(type),message,law); \
369 MMG5_SAFE_RECALLOC((ptr),initSize+1,initSize+gap+1,type,message,law); \
370 initSize = initSize+gap; \
374 #define MMG5_INCREASE_MEM_MESSAGE() do \
376 printf(" ## Check the mesh size or increase maximal"); \
377 printf(" authorized memory with the -m option.\n"); \
380 #define MMG5_SAFELL2LCAST(longlongval) (((longlongval) > (LONG_MAX)) ? 0 : ((long)(longlongval)))
381 #define MMG5_SAFELL2ICAST(longlongval) (((longlongval) > (INT_MAX)) ? 0 : ((int)(longlongval)))
391 fprintf(stdout,
" ## Warning: we will overflow the memory asked with \"-m\"");
392 fprintf(stdout,
" option during Scotch call.\n" );
405 fprintf(stdout,
"\n Unexpected error:"); fflush(stdout);
408 fprintf(stdout,
" *** potential lack of memory.\n");
break;
410 fprintf(stdout,
" *** Floating-point exception\n");
break;
412 fprintf(stdout,
" *** Illegal instruction\n");
break;
414 fprintf(stdout,
" *** Segmentation fault\n");
break;
417 fprintf(stdout,
" *** Program killed\n");
break;
436 #define FORTRAN_NAME(nu,nl,pl,pc) \
458 #define FORTRAN_VARIADIC(nu,nl,pl,body) \
509 extern double MMG5_det3pt1vec(
double c0[3],
double c1[3],
double c2[3],
double v[3]);
510 extern double MMG5_det4pt(
double c0[3],
double c1[3],
double c2[3],
double c3[3]);
519 int MMG5_paratmet(
double c0[3],
double n0[3],
double m[6],
double c1[3],
double n1[3],
double mt[6]);
520 void MMG5_mn(
double m[6],
double n[6],
double mn[9] );
521 extern int MMG5_rmtr(
double r[3][3],
double m[6],
double mr[6]);
531 int,
int,
double,
int,
double*,
int*,
char);
533 int,
int,
double,
int,
double*,
539 double *,
double *,
double *,
double *);
572 double *,
double *,
double,
double,
double);
574 double *,
double *,
double *,
double *,
575 double,
double,
double);
579 extern int MMG5_sys33sym(
double a[6],
double b[3],
double r[3]);
589 FILE **inm,
long *posNodes,
long *posElts,
590 long **posNodeData,
int *bin,
int *iswp,
591 int *nelts,
int *nsols);
594 const long posNodes,
const long posElts,
595 const long *posNodeData,
const int bin,
596 const int iswp,
const int nelts,
600 int*,
int*,
int**,
long*,
int);
int MMG2D_hashTria(MMG5_pMesh mesh)
Definition: hash_2d.c:49
Structure to store edges of a MMG mesh.
Definition: libmmgtypes.h:243
int MMG2D_split3(MMG5_pMesh, MMG5_pSol, int, int vx[3])
Definition: split_2d.c:624
int MMG2D_findtrianglestate(MMG5_pMesh mesh, int k, int ip1, int ip2, int ip3, int ip4, int base)
Definition: mmg2d2.c:132
void MMG5_printSolStats(MMG5_pMesh mesh, MMG5_pSol *sol)
Definition: inout.c:2428
int nmat
Definition: libmmgtypes.h:451
int MMG2D_movintpt_ani(MMG5_pMesh mesh, MMG5_pSol met, int ilist, int *list, char improve)
Definition: anisomovpt_2d.c:37
#define MG_BDY
Definition: mmgcommon.h:145
int MMG2D_mmg2d6(MMG5_pMesh mesh, MMG5_pSol sol)
Definition: mmg2d6.c:617
int np
Definition: libmmgtypes.h:566
double c[3]
Definition: libmmgtypes.h:215
int MMG2D_setref_ls(MMG5_pMesh mesh, MMG5_pSol sol)
Definition: mmg2d6.c:553
int MMG2D_anatri(MMG5_pMesh mesh, MMG5_pSol met, char typchk)
Definition: mmg2d1.c:39
#define MG_EDG(tag)
Definition: mmgcommon.h:162
void MMG5_Set_commonFunc()
int MMG5_saveSolHeader(MMG5_pMesh, const char *, FILE **, int, int *, int, int, int, int *, int *)
Definition: inout.c:2266
int MMG2D_adptri(MMG5_pMesh mesh, MMG5_pSol met)
Definition: mmg2d1.c:542
int MMG2D_swapar(MMG5_pMesh, int, char)
Definition: swapar_2d.c:221
int MMG2D_indElt(MMG5_pMesh mesh, int kel)
Definition: tools_2d.c:45
#define MG_MAX(a, b)
Definition: mmgcommon.h:136
double MMG5_orvol(MMG5_pPoint point, int *v)
Definition: tools.c:836
double hmin
Definition: libmmgtypes.h:445
int MMG2D_newPt(MMG5_pMesh mesh, double c[2], int16_t tag)
Definition: zaldy_2d.c:38
int v[3]
Definition: libmmgtypes.h:272
#define MG_MINUS
Definition: mmgcommon.h:79
int MMG2D_chkmovmesh(MMG5_pMesh mesh, MMG5_pSol disp, short t)
Definition: mmg2d9.c:106
Definition: libmmgtypes.h:563
int MMG5_hashEdge(MMG5_pMesh mesh, MMG5_Hash *hash, int a, int b, int k)
Definition: hash.c:216
#define MG_SIN(tag)
Definition: mmgcommon.h:163
int MMG2D_removeBBtriangles(MMG5_pMesh mesh)
Definition: mmg2d2.c:42
static size_t myfree(void *ptr)
Definition: mmgcommon.h:254
int MMG2D_colver(MMG5_pMesh mesh, int ilist, int *list)
Definition: colver_2d.c:270
int MMG2D_isInTriangle(MMG5_pMesh mesh, int k, double c[2])
Definition: locate_2d.c:69
int MMG5_buildridmetfic(MMG5_pMesh, double *, double *, double, double, double, double *)
double(* MMG5_lenSurfEdg)(MMG5_pMesh mesh, MMG5_pSol sol, int, int, char)
Definition: mmgexterns.c:29
int MMG5_buildridmet(MMG5_pMesh, MMG5_pSol, int, double, double, double, double *, double[3][3])
int cc
Definition: libmmgtypes.h:275
int MMG2D_saveDisp(MMG5_pMesh mesh, MMG5_pSol disp)
Definition: mmg2d9.c:435
#define MG_REF
Definition: mmgcommon.h:141
unsigned char nomove
Definition: libmmgtypes.h:457
#define MG_EOK(pt)
Definition: mmgcommon.h:160
static double MMG2D_caltri_iso_3pt(double *a, double *b, double *c)
Definition: mmg2d9.c:76
int MMG5_buildridmetnor(MMG5_pMesh, MMG5_pSol, int, double *, double *, double[3][3])
int rex
Definition: libmmgtypes.h:435
static void MMG5_excfun(int sigid)
Definition: mmgcommon.h:404
int MMG2D_movintpt(MMG5_pMesh, MMG5_pSol, int, int *, char)
Definition: movpt_2d.c:212
#define MG_NOM
Definition: mmgcommon.h:144
int MMG5_sys33sym(double a[6], double b[3], double r[3])
Definition: tools.c:463
int MMG2D_spllag(MMG5_pMesh mesh, MMG5_pSol disp, MMG5_pSol met, int itdeg, int *warn)
Definition: mmg2d9.c:244
int MMG2D_chkmanimesh(MMG5_pMesh mesh)
Definition: mmg2d6.c:343
int MMG2D_ismaniball(MMG5_pMesh mesh, MMG5_pSol sol, int start, char istart)
Definition: mmg2d6.c:113
int MMG2D_snapval(MMG5_pMesh mesh, MMG5_pSol sol, double *tmp)
Definition: mmg2d6.c:183
int(* MMG5_grad2metreq_ani)(MMG5_pMesh, MMG5_pSol, MMG5_pTria, int, int)
Definition: mmgexterns.c:33
int size
Definition: libmmgtypes.h:569
int MMG5_hashGet(MMG5_Hash *hash, int a, int b)
Definition: hash.c:303
int MMG5_loadMshMesh_part2(MMG5_pMesh mesh, MMG5_pSol *sol, FILE **inm, const long posNodes, const long posElts, const long *posNodeData, const int bin, const int iswp, const int nelts, const int nsols)
Definition: inout.c:489
int MMG5_invmat33(double m[3][3], double mi[3][3])
Definition: tools.c:369
int rin
Definition: libmmgtypes.h:435
int MMG5_scaleMesh(MMG5_pMesh mesh, MMG5_pSol met)
Definition: scalem.c:89
#define MMG2D_DEGTOL
Definition: mmg2d9.c:38
#define MMG2D_LONMAX
Definition: mmg2d.h:58
Identic as MMG5_HGeom but use MMG5_hedge to store edges instead of MMG5_hgeom (memory economy).
Definition: libmmgtypes.h:499
int MMG2D_split2_sim(MMG5_pMesh, MMG5_pSol, int, int vx[3])
Definition: split_2d.c:450
void MMG5_mmgInit_parameters(MMG5_pMesh mesh)
int(* MMG2D_gradsizreq)(MMG5_pMesh, MMG5_pSol)
Definition: mmg2dexterns.c:6
void MMG5_printMetStats(MMG5_pMesh mesh, MMG5_pSol met)
Definition: inout.c:2410
MMG5_pPoint point
Definition: libmmgtypes.h:542
#define MMG2D_PRECI
Definition: mmg2d.h:54
int MMG2D_isSplit(MMG5_pMesh mesh, int ref, int *refint, int *refext)
Definition: mmg2d6.c:45
#define MG_GET(flag, bit)
Definition: mmgcommon.h:169
int MMG2D_splitbar(MMG5_pMesh, int, int)
Definition: split_2d.c:715
int edg[3]
Definition: libmmgtypes.h:277
double MMG5_caltri33_ani(MMG5_pMesh mesh, MMG5_pSol met, MMG5_pTria pt)
Definition: quality.c:47
int MMG5_gradsizreq_iso(MMG5_pMesh, MMG5_pSol)
Definition: isosiz.c:359
int16_t tag[3]
Definition: libmmgtypes.h:280
void MMG5_writeDoubleSol3D(MMG5_pMesh, MMG5_pSol, FILE *, int, int, int)
Definition: inout.c:2200
int MMG5_invmatg(double m[9], double mi[9])
Definition: tools.c:329
int(* MMG2D_defsiz)(MMG5_pMesh, MMG5_pSol)
Definition: mmg2dexterns.c:3
unsigned char noinsert
Definition: libmmgtypes.h:457
int(* MMG5_indPt)(MMG5_pMesh mesh, int kp)
Definition: mmgexterns.c:31
double max[3]
Definition: libmmgtypes.h:446
int MMG5_mmgIntmet33_ani(double *, double *, double *, double)
Definition: intmet.c:178
double hgradreq
Definition: libmmgtypes.h:445
int base
Definition: libmmgtypes.h:521
int MMG2D_movedgpt(MMG5_pMesh, MMG5_pSol, int, int *, char)
Definition: movpt_2d.c:52
MMG5_pMesh MMG5_pSol * sol
Definition: API_functionsf_2d.c:63
int MMG2D_mmg2d2(MMG5_pMesh mesh, MMG5_pSol sol)
Definition: mmg2d2.c:495
int MMG2D_split1(MMG5_pMesh, MMG5_pSol, int, int vx[3])
Definition: split_2d.c:384
MMG5_Bezier * MMG5_pBezier
Definition: mmgcommon.h:486
#define MG_VOK(ppt)
Definition: mmgcommon.h:159
double MMG5_det4pt(double c0[3], double c1[3], double c2[3], double c3[3])
Definition: tools.c:817
int np
Definition: libmmgtypes.h:516
void MMG5_mmgDefaultValues(MMG5_pMesh mesh)
Definition: mmg.c:80
int MMG5_compute_meanMetricAtMarkedPoints_iso(MMG5_pMesh mesh, MMG5_pSol met)
Definition: isosiz.c:167
int MMG5_boulen(MMG5_pMesh, int *, int, int i, double *nn)
Definition: boulep.c:50
int MMG5_Add_inode(MMG5_pMesh mesh, MMG5_iNode **liLi, int val)
Definition: tools.c:642
int ref
Definition: libmmgtypes.h:217
double MMG5_nonorsurf(MMG5_pMesh mesh, MMG5_pTria pt)
Definition: tools.c:106
To store user-defined references in the mesh (useful in LS mode)
Definition: libmmgtypes.h:433
int MMG5_devangle(double *n1, double *n2, double crit)
Definition: tools.c:49
int MMG2D_movtri(MMG5_pMesh mesh, MMG5_pSol met, int maxit, char improve)
Definition: mmg2d1.c:745
int MMG2D_velextLS(MMG5_pMesh, MMG5_pSol)
int(* MMG5_grad2met_ani)(MMG5_pMesh, MMG5_pSol, MMG5_pTria, int, int)
Definition: mmgexterns.c:32
int MMG2D_cavity(MMG5_pMesh mesh, MMG5_pSol sol, int ip, int *list)
Definition: delone_2d.c:175
int MMG5_elementWeight(MMG5_pMesh, MMG5_pSol, MMG5_pTria, MMG5_pPoint, MMG5_Bezier *, double r[3][3], double gv[2])
Definition: anisomovpt.c:53
struct MMG5_iNode_s MMG5_iNode
struct MMG5_iNode_s * nxt
Definition: mmgcommon.h:494
static void * mymalloc(size_t s)
Definition: mmgcommon.h:222
Cell for linked list of double value.
int MMG2D_split1_sim(MMG5_pMesh, MMG5_pSol, int, int vx[3])
Definition: split_2d.c:339
int * adja
Definition: libmmgtypes.h:529
static const unsigned char MMG5_iprv2[3]
Definition: mmgcommon.h:471
int MMG5_loadMshMesh_part1(MMG5_pMesh mesh, const char *filename, FILE **inm, long *posNodes, long *posElts, long **posNodeData, int *bin, int *iswp, int *nelts, int *nsols)
Definition: inout.c:241
MMG5_pTria tria
Definition: libmmgtypes.h:548
int(* MMG5_indElt)(MMG5_pMesh mesh, int kel)
Definition: mmgexterns.c:30
int MMG5_chkMetricType(MMG5_pMesh mesh, int *type, FILE *inm)
Definition: inout.c:2378
void MMG5_gradEigenvreq(double *dm, double *dn, double, int8_t, int8_t *)
Definition: anisosiz.c:1382
Definition: mmgcommon.h:492
int val
Definition: mmgcommon.h:493
int MMG2D_swpmsh(MMG5_pMesh mesh, MMG5_pSol met, int typchk)
Definition: mmg2d1.c:507
int MMG5_reset_metricAtReqEdges_surf(MMG5_pMesh, MMG5_pSol)
Definition: isosiz.c:194
int mark
Definition: libmmgtypes.h:523
MMG5_pMesh * mesh
Definition: API_functionsf_2d.c:63
#define MMG5_ADD_MEM(mesh, size, message, law)
Definition: mmgcommon.h:275
int MMG5_intmetsavedir(MMG5_pMesh mesh, double *m, double *n, double *mr)
Definition: mettools.c:86
char dospl
Definition: libmmgtypes.h:434
int MMG5_bouler(MMG5_pMesh, int *, int, int i, int *, int *, int *, int *, int)
Definition: boulep.c:214
#define MG_GEO
Definition: mmgcommon.h:142
void MMG5_gradation_info(MMG5_pMesh mesh)
Definition: isosiz.c:96
int MMG2D_chkcol(MMG5_pMesh mesh, MMG5_pSol met, int k, char i, int *list, char typchk)
Definition: colver_2d.c:41
static void * mycalloc(size_t c, size_t s)
Definition: mmgcommon.h:209
int MMG2D_getIniRef(MMG5_pMesh mesh, int ref)
Definition: mmg2d6.c:70
int MMG5_grad2metSurf(MMG5_pMesh, MMG5_pSol, MMG5_pTria, int, int)
Definition: anisosiz.c:912
void MMG5_Free_ilinkedList(MMG5_pMesh mesh, MMG5_iNode *liLi)
Definition: tools.c:694
int MMG2D_bezierCurv(MMG5_pMesh mesh, int k, char i, double s, double *o, double *no)
Definition: bezier_2d.c:117
void MMG2D_delPt(MMG5_pMesh mesh, int ip)
Definition: zaldy_2d.c:57
int ref
Definition: libmmgtypes.h:273
int MMG5_Add_dnode(MMG5_pMesh mesh, MMG5_dNode **liLi, int, double)
Definition: tools.c:740
Structure to store points of a MMG mesh.
Definition: libmmgtypes.h:214
int MMG2D_split2(MMG5_pMesh, MMG5_pSol, int, int vx[3])
Definition: split_2d.c:499
int MMG5_nortri(MMG5_pMesh mesh, MMG5_pTria pt, double *n)
Definition: tools.c:155
int MMG2D_cuttri_ls(MMG5_pMesh mesh, MMG5_pSol sol)
Definition: mmg2d6.c:413
void MMG5_mn(double m[6], double n[6], double mn[9])
Definition: tools.c:170
int MMG5_gradsizreq_ani(MMG5_pMesh mesh, MMG5_pSol met)
Definition: anisosiz.c:1797
int(* MMG2D_intmet)(MMG5_pMesh, MMG5_pSol, int, char, int, double)
Definition: mmg2dexterns.c:4
int MMG2D_mmg2d1n(MMG5_pMesh mesh, MMG5_pSol met)
Definition: mmg2d1.c:806
double MMG5_caltri_ani(MMG5_pMesh mesh, MMG5_pSol met, MMG5_pTria ptt)
Definition: quality.c:115
int b
Definition: libmmgtypes.h:244
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_intridmet(MMG5_pMesh, MMG5_pSol, int, int, double, double *, double *)
void MMG5_delEdge(MMG5_pMesh mesh, int iel)
Definition: zaldy_2d.c:70
int MMG5_unscaleMesh(MMG5_pMesh mesh, MMG5_pSol met)
Definition: scalem.c:260
double delta
Definition: libmmgtypes.h:446
int MMG5_gradsiz_iso(MMG5_pMesh mesh, MMG5_pSol met)
Definition: isosiz.c:268
void MMG5_displayLengthHisto_internal(int, int, int, double, int, int, double, int, double *, int *, char, int)
Definition: quality.c:294
int MMG5_rotmatrix(double n[3], double r[3][3])
Definition: tools.c:232
API header for the common part of the MMG libraries.
int MMG5_interpreg_ani(MMG5_pMesh, MMG5_pSol, MMG5_pTria, char, double, double *mr)
double(* MMG2D_lencurv)(MMG5_pMesh, MMG5_pSol, int, int)
Definition: mmg2dexterns.c:5
int MMG5_saveMshMesh(MMG5_pMesh, MMG5_pSol *, const char *, const int)
Definition: inout.c:1504
#define MMG2D_POINT_REALLOC(mesh, sol, ip, wantedGap, law, o, tag)
Definition: mmg2d.h:140
int MMG5_hashGet(MMG5_Hash *hash, int a, int b)
Definition: hash.c:303
int MMG2D_delone(MMG5_pMesh mesh, MMG5_pSol sol, int ip, int *list, int ilist)
Definition: delone_2d.c:264
unsigned char noswap
Definition: libmmgtypes.h:457
double MMG5_surftri_ani(MMG5_pMesh mesh, MMG5_pSol met, MMG5_pTria ptt)
Definition: anisosiz.c:122
int MMG2D_chkswp(MMG5_pMesh, MMG5_pSol, int, char, char)
Definition: swapar_2d.c:128
int MMG2D_chkedg(MMG5_pMesh mesh, int k)
Definition: bezier_2d.c:28
double ls
Definition: libmmgtypes.h:446
int MMG2D_singul(MMG5_pMesh mesh, int ref)
Definition: analys_2d.c:206
static int MMG2D_coleltlag(MMG5_pMesh mesh, MMG5_pSol met, int itdeg)
Definition: mmg2d9.c:339
struct MMG5_dNode_s * nxt
Definition: mmgcommon.h:504
int MMG5_invmat(double *m, double *mi)
Definition: tools.c:278
#define MG_MIN(a, b)
Definition: mmgcommon.h:137
#define MMG5_INCREASE_MEM_MESSAGE()
Definition: mmgcommon.h:374
int MMG5_hashUpdate(MMG5_Hash *hash, int a, int b, int k)
Definition: hash.c:270
int na
Definition: libmmgtypes.h:516
MMG5_Tria * MMG5_pTria
Definition: libmmgtypes.h:283
char imprim
Definition: libmmgtypes.h:453
int(* MMG2D_defsiz)(MMG5_pMesh, MMG5_pSol)
Definition: mmg2dexterns.c:3
double hgrad
Definition: libmmgtypes.h:445
#define MMG5_EPS
Definition: eigenv.h:32
int16_t tag
Definition: libmmgtypes.h:223
Definition: libmmgtypes.h:270
Definition: mmgcommon.h:480
#define MMG2D_TRIA_REALLOC(mesh, jel, wantedGap, law)
Definition: mmg2d.h:168
int MMG2D_colver2(MMG5_pMesh mesh, int *list)
Definition: colver_2d.c:418
static void * myrealloc(void *ptr_in, size_t s, size_t oldsize)
Definition: mmgcommon.h:235
Cell for linked list of integer value.
int MMG5_boulec(MMG5_pMesh, int *, int, int i, double *tt)
Definition: boulep.c:126
short MMG2D_dikomv(MMG5_pMesh mesh, MMG5_pSol disp)
Definition: mmg2d9.c:135
double MMG2D_quickarea(double a[2], double b[2], double c[2])
Definition: tools.c:856
#define MG_PLUS
Definition: mmgcommon.h:78
int MMG2D_chkmaniball(MMG5_pMesh mesh, int start, char istart)
Definition: mmg2d6.c:273
#define MG_NUL
Definition: mmgcommon.h:152
void MMG5_readDoubleSol3D(MMG5_pSol, FILE *, int, int, int)
Definition: inout.c:2152
MMG5_pMat mat
Definition: libmmgtypes.h:459
int mem
Definition: libmmgtypes.h:447
void MMG5_mark_pointsOnReqEdge_fromTria(MMG5_pMesh mesh)
Definition: isosiz.c:233
double MMG5_surftri33_ani(MMG5_pMesh, MMG5_pTria, double *, double *, double *)
int MMG5_solveDefmetregSys(MMG5_pMesh, double r[3][3], double *, double *, double *, double *, double, double, double)
size_t MMG5_memSize(void)
Definition: tools.c:546
int base
Definition: libmmgtypes.h:274
void MMG5_displayLengthHisto(MMG5_pMesh, int, double *, int, int, double, int, int, double, int, double *, int *, char)
Definition: quality.c:251
int MMG5_minQualCheck(int iel, double minqual, double alpha)
Definition: quality.c:343
int(* MMG5_chkmsh)(MMG5_pMesh, int, int)
Definition: mmgexterns.c:27
int MMG5_paratmet(double c0[3], double n0[3], double m[6], double c1[3], double n1[3], double mt[6])
Definition: mettools.c:652
int MMG5_intersecmet22(MMG5_pMesh mesh, double *m, double *n, double *mr)
Definition: mettools.c:254
int MMG5_updatemetreq_ani(double *n, double dn[2], double vp[2][2])
Definition: anisosiz.c:1413
int MMG2D_resetRef(MMG5_pMesh mesh)
Definition: mmg2d6.c:83
int MMG2D_assignEdge(MMG5_pMesh mesh)
Definition: hash_2d.c:214
int k
Definition: mmgcommon.h:502
int MMG5_loadSolHeader(const char *, int, FILE **, int *, int *, int *, int *, int *, int *, int **, long *, int)
Definition: inout.c:1968
#define MMG2D_EPSD
Definition: mmg2d.h:51
double MMG5_det3pt1vec(double c0[3], double c1[3], double c2[3], double v[3])
Definition: tools.c:805
int MMG5_simred(MMG5_pMesh, double *, double *, double dm[2], double dn[2], double vp[2][2])
Definition: anisosiz.c:1264
void MMG5_memOption_memSet(MMG5_pMesh mesh)
Definition: tools.c:585
MMG5_Sol * MMG5_pSol
Definition: libmmgtypes.h:576
char fem
Definition: libmmgtypes.h:453
int MMG5_sum_reqEdgeLengthsAtPoint(MMG5_pMesh, MMG5_pSol, int ip0, int ip1)
Definition: isosiz.c:129
int MMG5_scotchCall(MMG5_pMesh mesh, MMG5_pSol sol)
Definition: librnbg.c:192
int MMG5_defsiz_startingMessage(MMG5_pMesh, MMG5_pSol, const char *funcname)
Definition: isosiz.c:77
#define MMG5_EPSD2
Definition: mmgcommon.h:96
void MMG5_defUninitSize(MMG5_pMesh mesh, MMG5_pSol met)
Definition: anisosiz.c:224
void MMG5_gradation_info(MMG5_pMesh)
Definition: isosiz.c:96
void MMG5_bezierEdge(MMG5_pMesh, int, int, double *, double *, char, double *)
int MMG2D_boulet(MMG5_pMesh mesh, int start, char ip, int *list)
Definition: boulep_2d.c:202
int MMG5_gradsiz_ani(MMG5_pMesh mesh, MMG5_pSol met, int *it)
Definition: anisosiz.c:1735
int MMG5_writeLocalParamAtTri(MMG5_pMesh, MMG5_iNode *, FILE *)
Definition: mmg.c:162
int ref
Definition: libmmgtypes.h:435
int renum
Definition: libmmgtypes.h:449
#define MG_SMSGN(a, b)
Definition: mmgcommon.h:67
int MMG2D_dichoto(MMG5_pMesh mesh, MMG5_pSol met, int k, int *vx)
Definition: mmg2d1.c:357
double MMG5_caltri_iso(MMG5_pMesh mesh, MMG5_pSol met, MMG5_pTria ptt)
Definition: quality.c:198
MMG5_Mesh * MMG5_pMesh
Definition: libmmgtypes.h:557
int MMG2D_adpcol(MMG5_pMesh mesh, MMG5_pSol met)
Definition: mmg2d1.c:688
int MMG2D_colver3(MMG5_pMesh mesh, int *list)
Definition: colver_2d.c:356
int dim
Definition: libmmgtypes.h:565
int MMG5_interp_iso(double *ma, double *mb, double *mp, double t)
Definition: intmet.c:607
int MMG2D_split1b(MMG5_pMesh, int, char, int)
Definition: split_2d.c:238
void MMG5_readFloatSol3D(MMG5_pSol, FILE *, int, int, int)
Definition: inout.c:2106
int MMG2D_split3_sim(MMG5_pMesh, MMG5_pSol, int, int vx[3])
Definition: split_2d.c:586
void MMG5_mmgUsage(char *prog)
Definition: mmg.c:44
int nt
Definition: libmmgtypes.h:516
double(* MMG2D_lencurv)(MMG5_pMesh, MMG5_pSol, int, int)
Definition: mmg2dexterns.c:5
MMG5_hedge * item
Definition: libmmgtypes.h:501
#define MG_SET(flag, bit)
Definition: mmgcommon.h:167
MMG mesh structure.
Definition: libmmgtypes.h:509
int MMG2D_delElt(MMG5_pMesh mesh, int iel)
Definition: zaldy_2d.c:105
int MMG2D_swpmshlag(MMG5_pMesh mesh, MMG5_pSol met, double crit, int itdeg)
Definition: mmg2d9.c:401
double MMG5_ridSizeInNormalDir(MMG5_pMesh, int, double *, MMG5_pBezier, double, double)
int MMG2D_movtrilag(MMG5_pMesh mesh, MMG5_pSol met, int itdeg)
Definition: mmg2d9.c:469
int flag
Definition: libmmgtypes.h:279
double MMG5_surftri_iso(MMG5_pMesh mesh, MMG5_pSol met, MMG5_pTria ptt)
Definition: isosiz.c:42
double val
Definition: mmgcommon.h:503
#define MMG2D_NULKAL
Definition: mmg2d.h:60
int MMG2D_chkspl(MMG5_pMesh, MMG5_pSol, int, char)
Definition: split_2d.c:50
#define MMG2D_LOPTS
Definition: mmg2d.h:68
#define MMG2D_SHORTMAX
Definition: mmg2d.h:62
double hmax
Definition: libmmgtypes.h:445
int(* MMG2D_gradsizreq)(MMG5_pMesh, MMG5_pSol)
Definition: mmg2dexterns.c:6
int(* MMG2D_intmet)(MMG5_pMesh, MMG5_pSol, int, char, int, double)
Definition: mmg2dexterns.c:4
MMG5_Info info
Definition: libmmgtypes.h:552
int MMG2D_markSD(MMG5_pMesh mesh)
Definition: mmg2d2.c:309
int flag
Definition: libmmgtypes.h:221
int a
Definition: libmmgtypes.h:244
int npmax
Definition: libmmgtypes.h:516
#define MG_CLR(flag, bit)
Definition: mmgcommon.h:168
int MMG2D_bdryenforcement(MMG5_pMesh mesh, MMG5_pSol sol)
Definition: enforcement_2d.c:34
int MMG5_rmtr(double r[3][3], double m[6], double mr[6])
Definition: tools.c:198
#define MG_ISO
Definition: libmmgtypes.h:62
int MMG2D_findTria(MMG5_pMesh mesh, int ip)
Definition: locate_2d.c:215
tmp[*strlen0]
Definition: API_functionsf_2d.c:635
void MMG5_chooseOutputFormat(MMG5_pMesh mesh, int *msh)
Definition: mmg.c:186
int MMG5_solveDefmetrefSys(MMG5_pMesh, MMG5_pPoint, int *, double r[3][3], double *, double *, double *, double *, double, double, double)
double MMG5_ridSizeInTangentDir(MMG5_pMesh, MMG5_pPoint, int, int *, double, double)
Definition: anisosiz.c:725
int MMG2D_dispmesh(MMG5_pMesh mesh, MMG5_pSol disp, short t, int itdeg)
Definition: mmg2d9.c:177
int(* MMG2D_gradsiz)(MMG5_pMesh, MMG5_pSol)
Definition: mmg2dexterns.c:8
int MMG2D_colelt(MMG5_pMesh mesh, MMG5_pSol met, int typchk)
Definition: mmg2d1.c:433
Definition: mmgcommon.h:501
static const unsigned char MMG5_inxt2[6]
Definition: mmgcommon.h:470
int(* MMG2D_gradsiz)(MMG5_pMesh, MMG5_pSol)
Definition: mmg2dexterns.c:8
#define MMG5_SAFE_CALLOC(ptr, size, type, law)
Definition: mmgcommon.h:289
int MMG5_norpts(MMG5_pMesh, int, int, int, double *)
Definition: tools.c:129
int MMG5_mmgIntextmet(MMG5_pMesh, MMG5_pSol, int, double *, double *)
int MMG5_hashNew(MMG5_pMesh mesh, MMG5_Hash *hash, int hsiz, int hmax)
Definition: hash.c:333
void MMG5_Free_dlinkedList(MMG5_pMesh mesh, MMG5_dNode *liLi)
Definition: tools.c:792
int MMG5_countLocalParamAtTri(MMG5_pMesh, MMG5_iNode **)
Definition: mmg.c:117
void MMG5_printTria(MMG5_pMesh mesh, char *fileName)
Definition: tools.c:519
#define MMG5_DEL_MEM(mesh, ptr)
Definition: mmgcommon.h:266
MMG5_pEdge edge
Definition: libmmgtypes.h:550
int ier
Definition: API_functionsf_2d.c:594
char ddebug
Definition: libmmgtypes.h:453
double(* MMG2D_caltri)(MMG5_pMesh, MMG5_pSol, MMG5_pTria)
Definition: mmg2dexterns.c:7
char lag
Definition: libmmgtypes.h:453
#define MMG2D_LLONG
Definition: mmg2d.h:65
int MMG2D_adpspl(MMG5_pMesh mesh, MMG5_pSol met)
Definition: mmg2d1.c:632
double min[3]
Definition: libmmgtypes.h:446
double gap
Definition: libmmgtypes.h:512
int(* MMG5_bezierCP)(MMG5_pMesh, MMG5_Tria *, MMG5_pBezier, char)
Definition: mmgexterns.c:28
int MMG2D_indPt(MMG5_pMesh mesh, int kp)
Definition: tools_2d.c:69
int MMG5_nonUnitNorPts(MMG5_pMesh, int, int, int, double *)
Definition: tools.c:73
#define MMG5_DISPREF
Definition: mmgcommon.h:85
#define MMG2D_LSHRT
Definition: mmg2d.h:66
int MMG2D_newElt(MMG5_pMesh mesh)
Definition: zaldy_2d.c:85
double MMG2D_estavglen(MMG5_pMesh mesh)
Definition: mmg2d9.c:41
struct MMG5_dNode_s MMG5_dNode
void MMG5_fillDefmetregSys(int, MMG5_pPoint, int, MMG5_Bezier, double r[3][3], double *, double *, double *, double *)
int tmp
Definition: libmmgtypes.h:219
int MMG2D_anaelt(MMG5_pMesh mesh, MMG5_pSol met, int typchk)
Definition: mmg2d1.c:109
int MMG5_boundingBox(MMG5_pMesh mesh)
Definition: scalem.c:45
#define MMG2D_LOPTL
Definition: mmg2d.h:67
int MMG5_grad2metSurfreq(MMG5_pMesh, MMG5_pSol, MMG5_pTria, int, int)
Definition: anisosiz.c:1450
int MMG2D_settagtriangles(MMG5_pMesh mesh, MMG5_pSol sol)
Definition: mmg2d2.c:99
int(* MMG5_compute_meanMetricAtMarkedPoints)(MMG5_pMesh, MMG5_pSol)
Definition: mmgexterns.c:34
int MMG5_hashEdge(MMG5_pMesh mesh, MMG5_Hash *hash, int a, int b, int k)
Definition: hash.c:216
int MMG5_mmgHashTria(MMG5_pMesh mesh, int *adja, MMG5_Hash *, int chkISO)
Definition: hash.c:50
int MMG5_compute_meanMetricAtMarkedPoints_ani(MMG5_pMesh mesh, MMG5_pSol met)
Definition: anisosiz.c:1690
int MMG2D_insertpointdelone(MMG5_pMesh mesh, MMG5_pSol sol)
Definition: mmg2d2.c:165
int MMG2D_norver(MMG5_pMesh mesh, int ref)
Definition: analys_2d.c:339
double n[3]
Definition: libmmgtypes.h:216
int MMG2D_mmg2d9(MMG5_pMesh mesh, MMG5_pSol disp, MMG5_pSol met)
Definition: mmg2d9.c:530