Skip to content

Commit

Permalink
Fix edge tag error in swap23.
Browse files Browse the repository at this point in the history
  • Loading branch information
Algiane committed Aug 26, 2024
1 parent 7c75282 commit a99d555
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/mmg3d/swap_3d.c
Original file line number Diff line number Diff line change
Expand Up @@ -902,11 +902,11 @@ int MMG3D_swap23(MMG5_pMesh mesh,MMG5_pSol met,MMG5_int k,int8_t metRidTyp,
/* xt[1] */
xt[1].tag[taued0[1]] = 0;
xt[1].tag[taued0[3]] = pxt1->tag[taued1[0]];
xt[1].tag[taued0[5]] = pxt1->tag[taued1[2]];
xt[1].tag[taued0[5]] = pxt1->tag[taued1[1]];

xt[1].edg[taued0[1]] = 0;
xt[1].edg[taued0[3]] = pxt1->edg[taued1[0]];
xt[1].edg[taued0[5]] = pxt1->edg[taued1[2]];
xt[1].edg[taued0[5]] = pxt1->edg[taued1[1]];

xt[1].ref[ tau0[0]] = pxt1->ref[tau1[3]];
xt[1].ref[ tau0[1]] = 0;
Expand All @@ -922,11 +922,11 @@ int MMG3D_swap23(MMG5_pMesh mesh,MMG5_pSol met,MMG5_int k,int8_t metRidTyp,
/* xt[2] */
xt[2].tag[taued0[2]] = 0;
xt[2].tag[taued0[4]] = pxt1->tag[taued1[0]];
xt[2].tag[taued0[5]] = pxt1->tag[taued1[1]];
xt[2].tag[taued0[5]] = pxt1->tag[taued1[2]];

xt[2].edg[taued0[2]] = 0;
xt[2].edg[taued0[4]] = pxt1->edg[taued1[0]];
xt[2].edg[taued0[5]] = pxt1->edg[taued1[1]];
xt[2].edg[taued0[5]] = pxt1->edg[taued1[2]];

xt[2].ref[ tau0[0]] = pxt1->ref[tau1[2]];
xt[2].ref[ tau0[1]] = 0;
Expand Down

0 comments on commit a99d555

Please sign in to comment.