Skip to content

Commit 1468096

Browse files
Merge pull request #305 from corentin-prigent/feature/fix-wrong-index
Fix wrong index in 2D mesh generation
2 parents 36a3e9f + 354a9c9 commit 1468096

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/mmg2d/delone_2d.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -260,8 +260,8 @@ int MMG2D_delone(MMG5_pMesh mesh,MMG5_pSol sol,MMG5_int ip,MMG5_int *list,int il
260260
MMG5_Hash hedg;
261261
static int8_t mmgWarn0=0,mmgWarn1=0;
262262

263-
/* Reset tagdel field */
264-
for (k=1; k<ilist; k++)
263+
/* Initialize tagdel field */
264+
for (k=1; k<=mesh->np-4; k++)
265265
mesh->point[k].tagdel = 0;
266266

267267
/* Triangles in the cavity are those s.t. pt->base == base */

0 commit comments

Comments
 (0)