diff --git a/FunctionSpace/FunctionSpace.cpp b/FunctionSpace/FunctionSpace.cpp index fa9035ea7418bf9035341a623ffd11a07aa31e26..56d9c199d2015378ce57dd837143253711dc34a3 100644 --- a/FunctionSpace/FunctionSpace.cpp +++ b/FunctionSpace/FunctionSpace.cpp @@ -232,7 +232,7 @@ vector<Dof> FunctionSpace::getKeys(const MElement& elem) const{ int parentTag = ElementType::ParentTypeFromTag(elem.getTypeForMSH()); int lowOrderTag = ElementType::getTag(parentTag, 1, false); - MElement* permElement = factory.create(lowOrderTag, vertex); + MElement* permElement = factory.create(lowOrderTag, vertex, element.getNum()); // Get Dofs from permuted Element // vector<Dof> myDofs = getUnorderedKeys(*permElement);