mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: Silencing particle tracking warnings by default.
This commit is contained in:
@ -334,11 +334,14 @@ void Foam::Cloud<ParticleType>::move(TrackData& td, const scalar trackTime)
|
||||
}
|
||||
}
|
||||
|
||||
reduce(nTrackingRescues_, sumOp<label>());
|
||||
|
||||
if (nTrackingRescues_ > 0)
|
||||
if (cloud::debug)
|
||||
{
|
||||
Info<< nTrackingRescues_ << " tracking rescue corrections" << endl;
|
||||
reduce(nTrackingRescues_, sumOp<label>());
|
||||
|
||||
if (nTrackingRescues_ > 0)
|
||||
{
|
||||
Info<< nTrackingRescues_ << " tracking rescue corrections" << endl;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -784,23 +784,26 @@ inline void Foam::particle::initCellFacePt()
|
||||
<< position_ << abort(FatalError);
|
||||
}
|
||||
|
||||
WarningIn("void Foam::particle::initCellFacePt()")
|
||||
<< "Particle moved from " << position_
|
||||
<< " to " << newPosition
|
||||
<< " in cell " << cellI_
|
||||
<< " tetFace " << tetFaceI_
|
||||
<< " tetPt " << tetPtI_ << nl
|
||||
<< " (A fraction of "
|
||||
<< 1.0 - mag(cC - newPosition)/mag(cC - position_)
|
||||
<< " of the distance to the cell centre)"
|
||||
<< " because a decomposition tetFace and tetPt "
|
||||
<< "could not be found."
|
||||
<< endl;
|
||||
if (debug)
|
||||
{
|
||||
WarningIn("void Foam::particle::initCellFacePt()")
|
||||
<< "Particle moved from " << position_
|
||||
<< " to " << newPosition
|
||||
<< " in cell " << cellI_
|
||||
<< " tetFace " << tetFaceI_
|
||||
<< " tetPt " << tetPtI_ << nl
|
||||
<< " (A fraction of "
|
||||
<< 1.0 - mag(cC - newPosition)/mag(cC - position_)
|
||||
<< " of the distance to the cell centre)"
|
||||
<< " because a decomposition tetFace and tetPt "
|
||||
<< "could not be found."
|
||||
<< endl;
|
||||
}
|
||||
|
||||
position_ = newPosition;
|
||||
}
|
||||
|
||||
if (cellI_ != oldCellI)
|
||||
if (debug && cellI_ != oldCellI)
|
||||
{
|
||||
WarningIn("void Foam::particle::initCellFacePt()")
|
||||
<< "Particle at position " << position_
|
||||
|
||||
Reference in New Issue
Block a user