Inspired by the simplicity of some of the fixes by Roman Krylov I ran
over the interpolate.cpp particle test and tried to make it compile.
The following patch makes that and also makes it pass (by pure luck).
The only transformation I'm not sure about is
Geometry::indexPoint() -> Mesh::vertexPosition()
Maybe one of the former developers can comment.
I also needed to introduce setExternalGuards() which implementation
may not be optimal. But well, better than before.
Tested particles with no regressions, interpolation now passing.
Ok?
@@ -328,8 +317,8 @@
<< sum(chargeDensity)
<< std::endl;
tester.check("chargeDensity(NGP,attrib) == numparticles",
- abs(sum(chargeDensity) -
- static_cast<double>(createnum))<1.0e-5);
+ fabs(sum(chargeDensity) -
+ static_cast<double>(createnum))<1.0e-5);