ENH: make creation of streamline seeds demand-driven

This commit is contained in:
Mark Olesen
2017-10-12 18:43:12 +02:00
parent f116217466
commit 9b2a25516e
4 changed files with 101 additions and 69 deletions

View File

@ -131,12 +131,11 @@ void Foam::functionObjects::wallBoundedStreamLine::track()
// Get the seed points
// ~~~~~~~~~~~~~~~~~~~
const sampledSet& seedPoints = sampledSetPtr_();
const sampledSet& seedPoints = sampledSetPoints();
forAll(seedPoints, i)
{
label celli = seedPoints.cells()[i];
const label celli = seedPoints.cells()[i];
if (celli != -1)
{