ENH: Have -region argument to foamFormatConvert

This commit is contained in:
mattijs
2010-04-27 14:55:30 +01:00
parent 626ce2bb16
commit 0da8c1864d
2 changed files with 39 additions and 17 deletions

View File

@ -40,13 +40,18 @@ namespace Foam
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
template<class T>
inline bool writeMeshObject(const word& name, Time& runTime)
inline bool writeMeshObject
(
const word& name,
const fileName& meshDir,
Time& runTime
)
{
IOobject io
(
name,
runTime.timeName(),
polyMesh::meshSubDir,
meshDir,
runTime,
IOobject::MUST_READ,
IOobject::NO_WRITE,