Use new mvBak() in a few places to avoid hammering existing files

This commit is contained in:
Mark Olesen
2009-07-20 11:10:59 +02:00
parent 8ff026095d
commit dc3ebcfb16
3 changed files with 3 additions and 3 deletions

View File

@ -47,7 +47,7 @@ void UnMapped(const IOobjectList& objects)
++fieldIter
)
{
mv(fieldIter()->objectPath(), fieldIter()->objectPath() + ".unmapped");
mvBak(fieldIter()->objectPath(), "unmapped");
}
}

View File

@ -104,7 +104,7 @@ autoCreateWallFunctionField
// rename file
Info<< " Backup original " << fieldName << " to "
<< fieldName << ".old" << endl;
mv(ioObj.objectPath(), ioObj.objectPath() + ".old");
mvBak(ioObj.objectPath(), "old");
PtrList<fvPatchField<Type> > newPatchFields(mesh.boundary().size());

View File

@ -104,7 +104,7 @@ autoCreateWallFunctionField
// rename file
Info<< " Backup original " << fieldName << " to "
<< fieldName << ".old" << endl;
mv(ioObj.objectPath(), ioObj.objectPath() + ".old");
mvBak(ioObj.objectPath(), "old");
PtrList<fvPatchField<Type> > newPatchFields(mesh.boundary().size());