Skip to content
GitLab
Menu
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
371619bc
Commit
371619bc
authored
Jun 17, 2021
by
mattijs
Browse files
BUG: rigidBodyMeshMotion: do not access uninitialised. Fixes
#2127
parent
9823ddd4
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/rigidBodyMeshMotion/rigidBodyMeshMotion/rigidBodyMeshMotion.C
View file @
371619bc
...
...
@@ -260,7 +260,11 @@ void Foam::rigidBodyMeshMotion::solve()
ramp
*
t
.
lookupObject
<
uniformDimensionedVectorField
>
(
"g"
).
value
();
}
vector
oldPos
=
model_
.
cCofR
(
bodyIdCofG_
);
vector
oldPos
(
vector
::
uniform
(
GREAT
));
if
(
bodyIdCofG_
!=
-
1
)
{
oldPos
=
model_
.
cCofR
(
bodyIdCofG_
);
}
if
(
test_
)
{
...
...
Write
Preview
Supports
Markdown
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