Bugfix for L2 finite element collections over points.
Point meshes (dim == 0) were not explicitly handled, causing a segfault.
This commit is contained in:
+5
-1
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user