mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
applyWallFunctionBoundaryConditions - use mvBak()
This commit is contained in:
@ -190,13 +190,12 @@ void replaceBoundaryType
|
||||
const_cast<word&>(IOdictionary::typeName) = oldTypeName;
|
||||
const_cast<word&>(dict.type()) = dict.headerClassName();
|
||||
|
||||
// Make a backup of the old field
|
||||
word backupName(dict.name() + ".old");
|
||||
Info<< " copying " << dict.name() << " to "
|
||||
<< backupName << endl;
|
||||
IOdictionary dictOld = dict;
|
||||
dictOld.rename(backupName);
|
||||
dictOld.regIOobject::write();
|
||||
// Make a backup of the old file
|
||||
if (mvBak(dict.objectPath(), "old"))
|
||||
{
|
||||
Info<< " Backup original file to "
|
||||
<< (dict.objectPath() + ".old") << endl;
|
||||
}
|
||||
|
||||
// Loop through boundary patches and update
|
||||
const polyBoundaryMesh& bMesh = mesh.boundaryMesh();
|
||||
|
||||
Reference in New Issue
Block a user