Skip to content
Snippets Groups Projects
Commit a1592508 authored by Ansgar Burchardt's avatar Ansgar Burchardt
Browse files

Remove wrong check for `PointInElement`

The check was already disabled by the `if (0)`.
parent be15084a
No related branches found
No related tags found
1 merge request!54Remove more unused code
......@@ -1120,35 +1120,6 @@ static INT CheckElement (GRID *theGrid, ELEMENT *theElement, INT *SideError, INT
if (theFather != NULL)
UserWriteF(PFMT "ELEM(" EID_FMTX ") has no fatherpointer but father="
EID_FMTX "\n",me,EID_PRTX(theElement),EID_PRTX(theFather));
if (0)
for (theFather = PFIRSTELEMENT(downGrid);
theFather != NULL; theFather = SUCCE(theFather))
{
k = PointInElement(center,theFather);
switch (k)
{
case 0:
UserWriteF(PFMT "ELEM(" EID_FMTX ") PointInElement() returned"
" error",me,EID_PRTX(theElement));
break;
case 1:
case 2:
case 3:
case 4:
/* point (nearly) in father */
UserWriteF(PFMT "ELEM(" EID_FMTX ") has no fatherpointer but father="
EID_FMTX "\n",me,EID_PRTX(theElement),EID_PRTX(theFather));
break;
case 5:
/* point not in father */
break;
default:
UserWriteF(PFMT "ELEM(" EID_FMTX ") PointInElement() unexpected"
" Returncode=%d",me,EID_PRTX(theElement),k);
break;
}
}
}
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment