From 3becbfec6497741d07eb0f21ed6543d6cf08c3bf Mon Sep 17 00:00:00 2001 From: Oliver Sander <sander@igpm.rwth-aachen.de> Date: Thu, 6 Mar 2014 17:32:30 +0100 Subject: [PATCH] [cleanup] Minor code simplification --- gm/refine.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/gm/refine.c b/gm/refine.c index 69bfed9de..e10926190 100644 --- a/gm/refine.c +++ b/gm/refine.c @@ -5322,17 +5322,13 @@ static int RefineElementGreen (GRID *theGrid, ELEMENT *theElement, NODE **theCon l = 0; for (j=0; j<CORNERS_OF_TAG(sons[i].tag); j++) { - if (sons[i].corners[j] != NULL) - { - ElementNodes[j] = sons[i].corners[j]; - } - else + if (sons[i].corners[j] == NULL) { sons[i].corners[j] = theContext[CORNERS_OF_ELEM(theElement)+ CENTER_NODE_INDEX(theElement)]; - ElementNodes[j] = sons[i].corners[j]; l++; } + ElementNodes[j] = sons[i].corners[j]; } ASSERT(l == 1); -- GitLab