Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Development
openfoam
Commits
7d077626
Commit
7d077626
authored
Mar 13, 2019
by
mattijs
Committed by
Andrew Heather
Mar 13, 2019
Browse files
ENH: moveDynamicMesh: add -overwrite option. Fixes
#1233
.
parent
98e8b7ff
Changes
1
Hide whitespace changes
Inline
Side-by-side
applications/utilities/mesh/manipulation/moveDynamicMesh/moveDynamicMesh.C
View file @
7d077626
...
...
@@ -162,6 +162,7 @@ int main(int argc, char *argv[])
"Mesh motion and topological mesh changes utility"
);
#include "addOverwriteOption.H"
#include "addRegionOption.H"
argList
::
addBoolOption
(
...
...
@@ -180,6 +181,10 @@ int main(int argc, char *argv[])
Info
<<
"Writing VTK files with weights of AMI patches."
<<
nl
<<
endl
;
}
const
bool
overwrite
=
args
.
found
(
"overwrite"
);
const
word
oldInstance
=
mesh
.
pointsInstance
();
pimpleControl
pimple
(
mesh
);
bool
moveMeshOuterCorrectors
...
...
@@ -199,6 +204,15 @@ int main(int argc, char *argv[])
}
}
if
(
overwrite
)
{
mesh
.
setInstance
(
oldInstance
);
runTime
.
write
();
runTime
.
printExecutionTime
(
Info
);
break
;
}
mesh
.
checkMesh
(
true
);
if
(
checkAMI
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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