BUG: lagrangian - corrected references to position()

This commit is contained in:
Andrew Heather
2017-12-19 21:25:12 +00:00
parent e97275cf12
commit bd181f9a6c
9 changed files with 16 additions and 16 deletions

View File

@ -74,7 +74,7 @@ void Foam::ensightCloud::writePositions
// Master
forAllConstIter(Cloud<passiveParticle>, cloudPtr(), elmnt)
{
const point& p = elmnt().position();
const point p(elmnt().position());
os.write(p.x());
os.write(p.y());
@ -104,7 +104,7 @@ void Foam::ensightCloud::writePositions
label parcelId = 0;
forAllConstIter(Cloud<passiveParticle>, cloudPtr(), elmnt)
{
const point& p = elmnt().position();
const point p(elmnt().position());
os.write(++parcelId, 8); // unusual width
os.write(p.x());
@ -140,7 +140,7 @@ void Foam::ensightCloud::writePositions
label pti = 0;
forAllConstIter(Cloud<passiveParticle>, cloudPtr(), elmnt)
{
const point& p = elmnt().position();
const point p(elmnt().position());
points[pti++] = p;
}

View File

@ -76,7 +76,7 @@ void Foam::vtk::lagrangianWriter::writePoints()
forAllConstIters(parcels, iter)
{
const point& pt = iter().position();
const point pt(iter().position());
vtk::write(format(), pt);
}