Commit fb7172b9 authored by mattijs's avatar mattijs
Browse files

ENH: Particle.C : debug messages

parent e19446b3
......@@ -371,10 +371,21 @@ Foam::scalar Foam::Particle<ParticleType>::trackToFace
{
// Apply tracking correction towards tet centre
if (debug)
{
Pout<< "tracking rescue using tetCentre from " << position();
}
position_ +=
Cloud<ParticleType>::trackingCorrectionTol
*(tet.centre() - position_);
if (debug)
{
Pout<< " to " << position() << " due to "
<< (tet.centre() - position_) << endl;
}
cloud_.trackingRescue();
return trackFraction;
......@@ -639,6 +650,12 @@ Foam::scalar Foam::Particle<ParticleType>::trackToFace
tetPointRef tet = currentTet();
if (debug)
{
Pout<< "tracking rescue for lambdaMin:" << lambdaMin
<< "from " << position();
}
position_ +=
Cloud<ParticleType>::trackingCorrectionTol
*(tet.centre() - position_);
......@@ -692,6 +709,11 @@ Foam::scalar Foam::Particle<ParticleType>::trackToFace
}
}
if (debug)
{
Pout<< " to " << position() << endl;
}
cloud_.trackingRescue();
}
......
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