Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Development
openfoam
Commits
f3e40598
Commit
f3e40598
authored
Aug 04, 2009
by
Mark Olesen
Browse files
applyWallFunctionBoundaryConditions - use mvBak()
parent
1e6e335f
Changes
2
Hide whitespace changes
Inline
Side-by-side
applications/utilities/preProcessing/applyWallFunctionBoundaryConditions/applyWallFunctionBoundaryConditions.C
View file @
f3e40598
...
...
@@ -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
();
...
...
applications/utilities/preProcessing/foamUpgradeFvSolution/foamUpgradeFvSolution.C
View file @
f3e40598
...
...
@@ -84,11 +84,12 @@ int main(int argc, char *argv[])
}
else
{
mv
(
solutionDict
.
objectPath
(),
solutionDict
.
objectPath
()
+
".old"
);
if
(
mvBak
(
solutionDict
.
objectPath
(),
"old"
))
{
Info
<<
"Backup to "
<<
(
solutionDict
.
objectPath
()
+
".old"
)
<<
nl
;
}
solutionDict
.
writeObject
(
...
...
@@ -97,8 +98,8 @@ int main(int argc, char *argv[])
IOstream
::
UNCOMPRESSED
);
Info
<<
"
Backup to "
<<
(
solutionDict
.
objectPath
()
+
".old"
)
<<
nl
<<
"Write to "
<<
solutionDict
.
objectPath
()
<<
nl
<<
endl
;
Info
<<
"
Write to "
<<
solutionDict
.
objectPath
()
<<
nl
<<
endl
;
}
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment