tutorials/lagrangian/.../verticalChannel*: Updated particle tracks configuration

Resolves bug report https://bugs.openfoam.org/view.php?id=3528
This commit is contained in:
Will Bainbridge
2020-08-06 14:02:56 +01:00
parent 66f0e8f4ba
commit 1eab1b7ffe
8 changed files with 17 additions and 7 deletions

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011-2020 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
@ -193,7 +193,7 @@ int main(int argc, char *argv[])
}
if (Pstream::master())
if (allTracks.size() && Pstream::master())
{
PtrList<coordSet> tracks(allTracks.size());
forAll(allTracks, trackI)
@ -244,6 +244,8 @@ int main(int argc, char *argv[])
);
}
Info<< "End\n" << endl;
return 0;
}

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011-2020 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
@ -333,7 +333,7 @@ int main(int argc, char *argv[])
Info<< endl;
}
Info<< "\ndone" << endl;
Info<< "End\n" << endl;
return 0;
}