Skip to content
Snippets Groups Projects
Commit fb7172b9 authored by mattijs's avatar mattijs
Browse files

ENH: Particle.C : debug messages

parent e19446b3
No related branches found
No related tags found
No related merge requests found
...@@ -371,10 +371,21 @@ Foam::scalar Foam::Particle<ParticleType>::trackToFace ...@@ -371,10 +371,21 @@ Foam::scalar Foam::Particle<ParticleType>::trackToFace
{ {
// Apply tracking correction towards tet centre // Apply tracking correction towards tet centre
if (debug)
{
Pout<< "tracking rescue using tetCentre from " << position();
}
position_ += position_ +=
Cloud<ParticleType>::trackingCorrectionTol Cloud<ParticleType>::trackingCorrectionTol
*(tet.centre() - position_); *(tet.centre() - position_);
if (debug)
{
Pout<< " to " << position() << " due to "
<< (tet.centre() - position_) << endl;
}
cloud_.trackingRescue(); cloud_.trackingRescue();
return trackFraction; return trackFraction;
...@@ -639,6 +650,12 @@ Foam::scalar Foam::Particle<ParticleType>::trackToFace ...@@ -639,6 +650,12 @@ Foam::scalar Foam::Particle<ParticleType>::trackToFace
tetPointRef tet = currentTet(); tetPointRef tet = currentTet();
if (debug)
{
Pout<< "tracking rescue for lambdaMin:" << lambdaMin
<< "from " << position();
}
position_ += position_ +=
Cloud<ParticleType>::trackingCorrectionTol Cloud<ParticleType>::trackingCorrectionTol
*(tet.centre() - position_); *(tet.centre() - position_);
...@@ -692,6 +709,11 @@ Foam::scalar Foam::Particle<ParticleType>::trackToFace ...@@ -692,6 +709,11 @@ Foam::scalar Foam::Particle<ParticleType>::trackToFace
} }
} }
if (debug)
{
Pout<< " to " << position() << endl;
}
cloud_.trackingRescue(); cloud_.trackingRescue();
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment