Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
openfoam
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
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Development
openfoam
Commits
1ab64a0d
Commit
1ab64a0d
authored
8 years ago
by
Henry Weller
Browse files
Options
Downloads
Patches
Plain Diff
rigidBodyMeshMotion: Check for attempted assignment of patches to a merged body
parent
850013e7
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/rigidBodyMeshMotion/rigidBodyMeshMotion.C
+12
-1
12 additions, 1 deletion
src/rigidBodyMeshMotion/rigidBodyMeshMotion.C
with
12 additions
and
1 deletion
src/rigidBodyMeshMotion/rigidBodyMeshMotion.C
+
12
−
1
View file @
1ab64a0d
...
@@ -130,13 +130,24 @@ Foam::rigidBodyMeshMotion::rigidBodyMeshMotion
...
@@ -130,13 +130,24 @@ Foam::rigidBodyMeshMotion::rigidBodyMeshMotion
if
(
bodyDict
.
found
(
"patches"
))
if
(
bodyDict
.
found
(
"patches"
))
{
{
const
label
bodyID
=
model_
.
bodyID
(
iter
().
keyword
());
if
(
bodyID
==
-
1
)
{
FatalErrorInFunction
<<
"Body "
<<
iter
().
keyword
()
<<
" has been merged with another body"
" and cannot be assigned a set of patches"
<<
exit
(
FatalError
);
}
bodyMeshes_
.
append
bodyMeshes_
.
append
(
(
new
bodyMesh
new
bodyMesh
(
(
mesh
,
mesh
,
iter
().
keyword
(),
iter
().
keyword
(),
model_
.
bodyID
(
iter
().
keyword
())
,
bodyID
,
bodyDict
bodyDict
)
)
);
);
...
...
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