Skip to content
Snippets Groups Projects
Commit 77c0a811 authored by Norihiro Watanabe's avatar Norihiro Watanabe
Browse files

[Mesh] remove checks for base nodes in checkNonlinearNodeIDs()

parent 510ba462
No related branches found
No related tags found
No related merge requests found
......@@ -259,21 +259,18 @@ void Mesh::checkNonlinearNodeIDs() const
{
for (MeshLib::Element const* e : _elements)
{
for (unsigned i=0; i<e->getNumberOfBaseNodes(); i++)
{
if (!(e->getNodeIndex(i) < getNumberOfBaseNodes()))
OGS_FATAL(
"Node %d is a base/linear node, but the ID is not smaller "
"than the number of base nodes %d. Please renumber node IDs in the mesh.",
e->getNodeIndex(i), getNumberOfBaseNodes());
}
for (unsigned i=e->getNumberOfBaseNodes(); i<e->getNumberOfNodes(); i++)
{
if (!(e->getNodeIndex(i) >= getNumberOfBaseNodes()))
OGS_FATAL(
"Node %d is a non-linear node, but the ID is smaller "
"than the number of base nodes %d. Please renumber node IDs in the mesh.",
e->getNodeIndex(i), getNumberOfBaseNodes());
if (e->getNodeIndex(i) >= getNumberOfBaseNodes())
continue;
DBUG(
"Node %d is a non-linear node, but the ID is smaller "
"than the number of base nodes %d.",
e->getNodeIndex(i), getNumberOfBaseNodes());
ERR("Found a nonlinear node whose ID is smaller than base node IDs."
"Some functions may not work properly.");
return;
}
}
}
......
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