add region option

This commit is contained in:
mattijs
2009-04-25 14:46:03 +01:00
parent c7dd5e32c5
commit 2d96e32b13
3 changed files with 14 additions and 3 deletions

View File

@ -236,8 +236,6 @@ Foam::sampledSets::sampledSets
loadFromFiles_(loadFromFiles),
outputPath_(fileName::null),
searchEngine_(mesh_, true),
// pMeshPtr_(NULL),
// pInterpPtr_(NULL),
fieldNames_(),
interpolationScheme_(word::null),
writeFormat_(word::null)
@ -250,6 +248,10 @@ Foam::sampledSets::sampledSets
{
outputPath_ = mesh_.time().path()/name_;
}
if (mesh_.name() != fvMesh::defaultRegion)
{
outputPath_ = outputPath_/mesh_.name();
}
read(dict);
}