ENH: Adding -overwrite option to mirrorMesh and update tutorial

This commit is contained in:
sergio
2012-04-20 12:16:50 +01:00
parent ea1706fe94
commit 13ef974eff
4 changed files with 12 additions and 59 deletions

View File

@ -37,15 +37,24 @@ using namespace Foam;
int main(int argc, char *argv[])
{
# include "addOverwriteOption.H"
# include "setRootCase.H"
# include "createTime.H"
const bool overwrite = args.optionFound("overwrite");
if (!overwrite)
{
runTime++;
}
mirrorFvMesh mesh
(
IOobject
(
mirrorFvMesh::defaultRegion,
runTime.timeName(),
runTime.constant(),
runTime
)
);