Skip to content
Snippets Groups Projects
Commit d2aea603 authored by Thomas Toulorge's avatar Thomas Toulorge
Browse files

Fixed CondNumBasis for pyramids (condition number now evaluated at mapping nodes except top vertex)

parent 0312b547
No related branches found
No related tags found
No related merge requests found
...@@ -323,7 +323,9 @@ CondNumBasis::CondNumBasis(int tag, int cnOrder) : ...@@ -323,7 +323,9 @@ CondNumBasis::CondNumBasis(int tag, int cnOrder) :
} }
const bool serendip = false; const bool serendip = false;
FuncSpaceData data = ( ElementType::ParentTypeFromTag(tag) == TYPE_PYR )? FuncSpaceData(true, tag, true, _condNumOrder+1, _condNumOrder, &serendip) : FuncSpaceData(true, tag, _condNumOrder, &serendip); FuncSpaceData data = (ElementType::ParentTypeFromTag(tag) == TYPE_PYR) ?
FuncSpaceData(true, tag, true, 1, _condNumOrder-1, &serendip) :
FuncSpaceData(true, tag, _condNumOrder, &serendip);
fullMatrix<double> lagPoints; // Sampling points fullMatrix<double> lagPoints; // Sampling points
gmshGeneratePoints(data, lagPoints); gmshGeneratePoints(data, lagPoints);
...@@ -386,7 +388,7 @@ int CondNumBasis::condNumOrder(int parentType, int order) ...@@ -386,7 +388,7 @@ int CondNumBasis::condNumOrder(int parentType, int order)
case TYPE_TET : return (order == 1) ? 0 : order; case TYPE_TET : return (order == 1) ? 0 : order;
case TYPE_PRI : return order; case TYPE_PRI : return order;
case TYPE_HEX : return order; case TYPE_HEX : return order;
case TYPE_PYR : return (order == 1) ? 0 : order; case TYPE_PYR : return order;
case TYPE_TRIH : return 0; case TYPE_TRIH : return 0;
default : default :
Msg::Error("Unknown element type %d, return order 0", parentType); Msg::Error("Unknown element type %d, return order 0", parentType);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment