Skip to content
Snippets Groups Projects
Commit 4bce2d6c authored by Stephan Seitz's avatar Stephan Seitz
Browse files

pe_coupling: Declare pe_coupling::overlapFractionPe inline

Defining this function in a header without inline/static specifier may
lead to ODR violations.
parent 883cd46c
No related merge requests found
...@@ -34,8 +34,8 @@ namespace walberla { ...@@ -34,8 +34,8 @@ namespace walberla {
namespace pe_coupling{ namespace pe_coupling{
real_t overlapFractionPe( const pe::RigidBody & peRigidBody, const Vector3<real_t> & cellMidpoint, inline real_t overlapFractionPe( const pe::RigidBody & peRigidBody, const Vector3<real_t> & cellMidpoint,
const Vector3<real_t> & dx, uint_t maxDepth=4 ) const Vector3<real_t> & dx, uint_t maxDepth=4 )
{ {
if( peRigidBody.getTypeID() == pe::Sphere::getStaticTypeID() || peRigidBody.getTypeID() == pe::Squirmer::getStaticTypeID() ) if( peRigidBody.getTypeID() == pe::Sphere::getStaticTypeID() || peRigidBody.getTypeID() == pe::Squirmer::getStaticTypeID() )
{ {
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment