Skip to content

Commit 1de0f31

Browse files
Merge pull request #296 from mpotse/splitfix1
bug fix in MMG5_split6(): face tags were taken from the wrong, uninitialized variable
2 parents 1772899 + 225051c commit 1de0f31

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/mmg3d/split_3d.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4518,7 +4518,7 @@ int MMG5_split6(MMG5_pMesh mesh,MMG5_pSol met,MMG5_int k,MMG5_int vx[6],int8_t m
45184518

45194519
/* Store face tags and refs from split tetra*/
45204520
for (i=0; i<4; i++) {
4521-
ftag[i] = (xt.ftag[i] & ~MG_REF);
4521+
ftag[i] = (xt0.ftag[i] & ~MG_REF);
45224522
}
45234523

45244524
/* Modify first tetra */

0 commit comments

Comments
 (0)