Skip to content
Snippets Groups Projects
Commit d39b2ca4 authored by Christophe Geuzaine's avatar Christophe Geuzaine
Browse files

fix alloc of triangle in factory (copy/paste bug!)

parent 1a428b9b
No related branches found
No related tags found
No related merge requests found
......@@ -963,7 +963,7 @@ class elementFactory{
case 1: return new line(x, y, z, copy ? numNodes : 0);
case 2:
if(numNodes == 4) return new quadrangle(x, y, z, copy ? numNodes : 0);
else return new triangle(x, y, z, copy);
else return new triangle(x, y, z, copy ? numNodes : 0);
case 3:
if(numNodes == 8) return new hexahedron(x, y, z, copy ? numNodes : 0);
else if(numNodes == 6) return new prism(x, y, z, copy ? numNodes : 0);
......
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