From 88c85f7e74a414595bad1131389b44f8b30fc234 Mon Sep 17 00:00:00 2001 From: Oliver Sander <sander@igpm.rwth-aachen.de> Date: Thu, 6 Mar 2014 17:38:14 +0100 Subject: [PATCH] [cleanup] Remove pointless assertion --- gm/refine.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/gm/refine.c b/gm/refine.c index b38eaeac3..2de5ff11d 100644 --- a/gm/refine.c +++ b/gm/refine.c @@ -5393,7 +5393,7 @@ static int RefineElementGreen (GRID *theGrid, ELEMENT *theElement, NODE **theCon { if (sons[i].tag >= 0) /* valid son entry */ { - k = l = 0; + l = 0; IFDEBUG(gm,0) for (j=0; j<SIDES_OF_ELEM(sons[i].theSon); j++) { @@ -5408,14 +5408,10 @@ static int RefineElementGreen (GRID *theGrid, ELEMENT *theElement, NODE **theCon for (j=0; j<SIDES_OF_ELEM(sons[i].theSon); j++) { if (sons[i].nb[j] != -1) - SET_NBELEM(sons[i].theSon,k++,sons[sons[i].nb[j]].theSon); + SET_NBELEM(sons[i].theSon,j,sons[sons[i].nb[j]].theSon); else - { l++; - k++; - } } - ASSERT(k == SIDES_OF_ELEM(sons[i].theSon)); /* l counts the number of element sides without a neighboring element. * Since all elements are pyramids/tetrahedra with exactly one vertex in the interior, * this value must be one. */ -- GitLab