Skip to content
Snippets Groups Projects
Commit 374160dc authored by Christoph Rettinger's avatar Christoph Rettinger
Browse files

Merge branch 'fix-sphere-moment-of-inertia' into 'master'

Fix argument order of calcInteria in Sphere constructor.

See merge request walberla/walberla!86
parents 934a270b a70e27e9
No related merge requests found
......@@ -90,7 +90,7 @@ Sphere::Sphere( id_t const typeId, id_t sid, id_t uid, const Vec3& gpos, const V
} else
{
auto mass = calcMass( radius, Material::getDensity( material ) );
setMassAndInertia( mass, calcInertia( radius, mass ) );
setMassAndInertia( mass, calcInertia( mass, radius ) );
}
setCommunicating( communicating );
setFinite( true );
......
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