Commit 4367ff38 authored by Andrew Heather's avatar Andrew Heather
Browse files

removed clause in if-statement - code could never be executed

parent 5969f162
...@@ -376,18 +376,9 @@ Foam::scalar Foam::Particle<ParticleType>::trackToFace ...@@ -376,18 +376,9 @@ Foam::scalar Foam::Particle<ParticleType>::trackToFace
static_cast<const wallPolyPatch&>(patch), td static_cast<const wallPolyPatch&>(patch), td
); );
} }
else if (isA<polyPatch>(patch))
{
p.hitPatch(patch, td);
}
else else
{ {
FatalErrorIn p.hitPatch(patch, td);
(
"Particle::trackToFace"
"(const vector& endPosition, scalar& trackFraction)"
)<< "patch type " << patch.type() << " not suported" << nl
<< abort(FatalError);
} }
} }
} }
......
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