Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
O
OpenFOAM-plus
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
Development
OpenFOAM-plus
Commits
3ead28ed
Commit
3ead28ed
authored
6 years ago
by
mattijs
Browse files
Options
Downloads
Patches
Plain Diff
ENH: moveDynamicMesh: add -overwrite option. Fixes
#1233
.
parent
c404b910
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
applications/utilities/mesh/manipulation/moveDynamicMesh/moveDynamicMesh.C
+14
-0
14 additions, 0 deletions
...ities/mesh/manipulation/moveDynamicMesh/moveDynamicMesh.C
with
14 additions
and
0 deletions
applications/utilities/mesh/manipulation/moveDynamicMesh/moveDynamicMesh.C
+
14
−
0
View file @
3ead28ed
...
@@ -162,6 +162,7 @@ int main(int argc, char *argv[])
...
@@ -162,6 +162,7 @@ int main(int argc, char *argv[])
"Mesh motion and topological mesh changes utility"
"Mesh motion and topological mesh changes utility"
);
);
#include
"addOverwriteOption.H"
#include
"addRegionOption.H"
#include
"addRegionOption.H"
argList
::
addBoolOption
argList
::
addBoolOption
(
(
...
@@ -180,6 +181,10 @@ int main(int argc, char *argv[])
...
@@ -180,6 +181,10 @@ int main(int argc, char *argv[])
Info
<<
"Writing VTK files with weights of AMI patches."
<<
nl
<<
endl
;
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
);
pimpleControl
pimple
(
mesh
);
bool
moveMeshOuterCorrectors
bool
moveMeshOuterCorrectors
...
@@ -199,6 +204,15 @@ int main(int argc, char *argv[])
...
@@ -199,6 +204,15 @@ int main(int argc, char *argv[])
}
}
}
}
if
(
overwrite
)
{
mesh
.
setInstance
(
oldInstance
);
runTime
.
write
();
runTime
.
printExecutionTime
(
Info
);
break
;
}
mesh
.
checkMesh
(
true
);
mesh
.
checkMesh
(
true
);
if
(
checkAMI
)
if
(
checkAMI
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment