Commit 9456ec88 authored by Christoph Rettinger's avatar Christoph Rettinger

Added assert msg to intersection ratio calculation

parent f364d10d
......@@ -30,8 +30,8 @@ real_t intersectionRatioBisection( const Body & body,
const Vector3<real_t> & direction,
const real_t epsilon )
{
WALBERLA_ASSERT( !geometry::contains( body, fluidPoint ) );
WALBERLA_ASSERT( geometry::contains( body, fluidPoint + direction ) );
WALBERLA_ASSERT( !geometry::contains( body, fluidPoint ), "fluid point: " << fluidPoint );
WALBERLA_ASSERT( geometry::contains( body, fluidPoint + direction ), "fluidPoint + direction: " << fluidPoint + direction );
const real_t sqEpsilon = epsilon * epsilon;
const real_t sqDirectionLength = direction.sqrLength();
......
Markdown is supported
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