Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Houman Mirzaalian Dastjerdi
waLBerla
Commits
51be3bd1
Commit
51be3bd1
authored
May 04, 2018
by
Christian Godenschwager
Browse files
Assert that pe body's type id is initialized when requested
parent
cbc79ce4
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/pe/rigidbody/RigidBody.h
View file @
51be3bd1
...
...
@@ -1170,7 +1170,11 @@ const Vec3 RigidBody::accFromWF( real_t px, real_t py, real_t pz ) const
}
//*************************************************************************************************
inline
id_t
RigidBody
::
getTypeID
()
const
{
inline
id_t
RigidBody
::
getTypeID
()
const
{
WALBERLA_ASSERT_LESS
(
typeID_
,
std
::
numeric_limits
<
id_t
>::
max
(),
"You are requesting the type "
\
" id of a body, but the static type id for the body has not yet been "
\
" initialized! Call SetBodyTypeIDs<BodyTypeTuple>::execute to initialize!"
);
return
typeID_
;
}
...
...
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