BUG: InteractionLists. Not writing wall faces obj file when there are

none.  using correct timePath.
This commit is contained in:
graham
2010-04-29 20:00:39 +01:00
parent 8fdc881ae7
commit 3e19b35b22
2 changed files with 13 additions and 3 deletions

View File

@ -1032,13 +1032,22 @@ void Foam::InteractionLists<ParticleType>::prepareWallDataToRefer()
template<class ParticleType>
void Foam::InteractionLists<ParticleType>::writeReferredWallFaces() const
{
fileName objDir = mesh_.time().timeName()/cloud::prefix/cloud_.name();
if (referredWallFaces_.empty())
{
return;
}
fileName objDir = mesh_.time().timePath()/cloud::prefix;
mkDir(objDir);
OFstream str(objDir /"referredWallFaces.obj");
fileName objFileName = "referredWallFaces.obj";
Info<< " Writing " << str.name() << endl;
OFstream str(objDir/objFileName);
Info<< " Writing "
<< mesh_.time().timeName()/cloud::prefix/objFileName
<< endl;
label offset = 1;

View File

@ -67,6 +67,7 @@ SourceFiles
#include "treeDataCell.H"
#include "treeDataFace.H"
#include "mapDistribute.H"
#include "volFields.H"
#include "Random.H"
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //