db7fac3f24
git-svn-id: https://openfoam-extend.svn.sourceforge.net/svnroot/openfoam-extend/trunk/Core/OpenFOAM-1.5-dev@1731 e4e07f05-0c2f-0410-a05a-b8ba57e0c909
19 lines
351 B
C
19 lines
351 B
C
// check for lagrangian/positions information in the final directory
|
|
|
|
bool hasLagrangian = false;
|
|
if (timeDirs.size() > 1)
|
|
{
|
|
IOobject io
|
|
(
|
|
"positions",
|
|
timeDirs[timeDirs.size() - 1].name(),
|
|
"lagrangian",
|
|
mesh,
|
|
IOobject::NO_READ
|
|
);
|
|
|
|
if (io.headerOk())
|
|
{
|
|
hasLagrangian = true;
|
|
}
|
|
}
|