Commit 0d8abaab authored by Michael Turner's avatar Michael Turner

Merge branch 'fix/interpolator-empty' into 'master'

Interpolator: fix divide by zero

See merge request !869
parents 82ac29ef ca0051e3
......@@ -87,6 +87,7 @@ v4.4.2
- Fix evaluation of points (e.g. HistoryPoints, Interpolation to pts) close to
the interface of two elements (!836)
- Fix deadlock in Hdf5 with homogeneous expansions (!858)
- Fix a crash when Interpolator is called on an empty field (!869)
- Fix petsc compile without MPI (!873)
**NekMesh**
......
......@@ -600,8 +600,11 @@ void Interpolator::PrintStatistics()
}
cout << "Number of points: " << m_neighInds.GetRows() << endl;
cout << "mean Number of Neighbours per point: "
<< meanN / m_neighInds.GetRows() << endl;
if (m_neighInds.GetRows() > 0)
{
cout << "mean Number of Neighbours per point: "
<< meanN / m_neighInds.GetRows() << endl;
}
}
/**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment