mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
Use new mvBak() in a few places to avoid hammering existing files
This commit is contained in:
@ -47,7 +47,7 @@ void UnMapped(const IOobjectList& objects)
|
||||
++fieldIter
|
||||
)
|
||||
{
|
||||
mv(fieldIter()->objectPath(), fieldIter()->objectPath() + ".unmapped");
|
||||
mvBak(fieldIter()->objectPath(), "unmapped");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -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());
|
||||
|
||||
@ -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());
|
||||
|
||||
Reference in New Issue
Block a user