Skip to content
Snippets Groups Projects
Commit d68684b7 authored by Amaury Johnen's avatar Amaury Johnen
Browse files

fix bug tet p3 serendip

parent 29ca02f8
No related branches found
No related tags found
No related merge requests found
......@@ -286,7 +286,7 @@ fullMatrix<double> gmshGenerateMonomialsTetrahedron(int order, bool serendip)
}
}
if (order > 2) {
if (!serendip && order > 2) {
fullMatrix<double> dudv = gmshGenerateMonomialsTriangle(order - 3);
dudv.add(1);
......@@ -311,7 +311,7 @@ fullMatrix<double> gmshGenerateMonomialsTetrahedron(int order, bool serendip)
}
}
if (!serendip && order > 3) {
if (order > 3) {
fullMatrix<double> inner = gmshGenerateMonomialsTetrahedron(order - 4);
inner.add(1);
monomials.copy(inner, 0, nbMonomials - index, 0, 3, index, 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