ENH: InteractionLists. Writing referredWallFaces out under the

control of the writeCloud Switch.
This commit is contained in:
graham
2010-04-12 17:39:02 +01:00
parent 4f4958c2bb
commit 1d7074a0b5
2 changed files with 8 additions and 3 deletions

View File

@ -178,10 +178,10 @@ void Foam::Cloud<ParticleType>::calcConcaveCells() const
// }
// Force all cells to be treated exactly
// concaveCell[cellI] = 1;
concaveCell[cellI] = 1;
// Force all cells to be treated by planes
concaveCell[cellI] = 0;
// concaveCell[cellI] = 0;
}
// {

View File

@ -388,6 +388,8 @@ void Foam::InteractionLists<ParticleType>::writeReferredWallFaces() const
{
OFstream str(mesh_.time().path()/"referredWallFaces.obj");
Info<< " Writing " << str.name().name() << endl;
label offset = 1;
forAll(referredWallFaces_, rWFI)
@ -938,7 +940,10 @@ Foam::InteractionLists<ParticleType>::InteractionLists
wallFaceMap().distribute(referredWallFaces_);
writeReferredWallFaces();
if (writeCloud_)
{
writeReferredWallFaces();
}
// Direct interaction list and direct wall faces