Bugfix for L2 finite element collections over points.

Point meshes (dim == 0) were not explicitly handled, causing a segfault.
This commit is contained in:
Kenneth Weiss
2017-11-30 12:55:26 -08:00
parent 99b3bba224
commit b68e022ae4
+5 -1
View File
@@ -1742,7 +1742,11 @@ L2_FECollection::L2_FECollection(const int p, const int dim, const int type,
}
OtherDofOrd = NULL;
if (dim == 1)
if (dim == 0)
{
L2_Elements[Geometry::POINT] = new PointFiniteElement;
}
else if (dim == 1)
{
if (m_type == BasisType::Positive)
{