From c83cc8cb357df68625f63276b5eaec42ab8e0bb8 Mon Sep 17 00:00:00 2001 From: mattijs Date: Wed, 29 Jan 2020 14:58:20 +0000 Subject: [PATCH] STYLE: lagrangian: debug to Pout, not Info --- src/lagrangian/basic/particle/particle.C | 22 +++++++++---------- .../KinematicCloud/KinematicCloudI.H | 2 +- src/lagrangian/solidParticle/solidParticle.C | 2 +- 3 files changed, 13 insertions(+), 13 deletions(-) diff --git a/src/lagrangian/basic/particle/particle.C b/src/lagrangian/basic/particle/particle.C index 0618bf41ec..42138a46b1 100644 --- a/src/lagrangian/basic/particle/particle.C +++ b/src/lagrangian/basic/particle/particle.C @@ -681,7 +681,7 @@ Foam::scalar Foam::particle::trackToStationaryTri if (debug) { - Info<< "Particle " << origId() << endl << "Tracking from " << x0 + Pout<< "Particle " << origId() << endl << "Tracking from " << x0 << " along " << x1 << " to " << x0 + x1 << endl; } @@ -695,7 +695,7 @@ Foam::scalar Foam::particle::trackToStationaryTri { vector o, b, v1, v2; stationaryTetGeometry(o, b, v1, v2); - Info<< "Tet points o=" << o << ", b=" << b + Pout<< "Tet points o=" << o << ", b=" << b << ", v1=" << v1 << ", v2=" << v2 << endl << "Tet determinant = " << detA << endl << "Start local coordinates = " << y0 << endl; @@ -709,7 +709,7 @@ Foam::scalar Foam::particle::trackToStationaryTri if (debug) { - Info<< "Local displacement = " << Tx1 << "/" << detA << endl; + Pout<< "Local displacement = " << Tx1 << "/" << detA << endl; } // Calculate the hit fraction @@ -723,7 +723,7 @@ Foam::scalar Foam::particle::trackToStationaryTri if (debug) { - Info<< "Hit on tet face " << i << " at local coordinate " + Pout<< "Hit on tet face " << i << " at local coordinate " << y0 + mu*Tx1 << ", " << mu*detA*100 << "% of the " << "way along the track" << endl; } @@ -759,13 +759,13 @@ Foam::scalar Foam::particle::trackToStationaryTri { if (iH != -1) { - Info<< "Track hit tet face " << iH << " first" << endl; + Pout<< "Track hit tet face " << iH << " first" << endl; } else { - Info<< "Track hit no tet faces" << endl; + Pout<< "Track hit no tet faces" << endl; } - Info<< "End local coordinates = " << yH << endl + Pout<< "End local coordinates = " << yH << endl << "End global coordinates = " << position() << endl << "Tracking displacement = " << position() - x0 << endl << muH*detA*100 << "% of the step from " << stepFraction_ << " to " @@ -792,7 +792,7 @@ Foam::scalar Foam::particle::trackToMovingTri if (debug) { - Info<< "Particle " << origId() << endl << "Tracking from " << x0 + Pout<< "Particle " << origId() << endl << "Tracking from " << x0 << " along " << x1 << " to " << x0 + x1 << endl; } @@ -893,13 +893,13 @@ Foam::scalar Foam::particle::trackToMovingTri { if (iH != -1) { - Info<< "Track hit tet face " << iH << " first" << endl; + Pout<< "Track hit tet face " << iH << " first" << endl; } else { - Info<< "Track hit no tet faces" << endl; + Pout<< "Track hit no tet faces" << endl; } - Info<< "End local coordinates = " << yH << endl + Pout<< "End local coordinates = " << yH << endl << "End global coordinates = " << position() << endl; } diff --git a/src/lagrangian/intermediate/clouds/Templates/KinematicCloud/KinematicCloudI.H b/src/lagrangian/intermediate/clouds/Templates/KinematicCloud/KinematicCloudI.H index d0af4d9fb6..9b2ec4d669 100644 --- a/src/lagrangian/intermediate/clouds/Templates/KinematicCloud/KinematicCloudI.H +++ b/src/lagrangian/intermediate/clouds/Templates/KinematicCloud/KinematicCloudI.H @@ -425,7 +425,7 @@ Foam::KinematicCloud::SU(volVectorField& U) const { if (debug) { - Info<< "UTrans min/max = " << min(UTrans()).value() << ", " + Pout<< "UTrans min/max = " << min(UTrans()).value() << ", " << max(UTrans()).value() << nl << "UCoeff min/max = " << min(UCoeff()).value() << ", " << max(UCoeff()).value() << endl; diff --git a/src/lagrangian/solidParticle/solidParticle.C b/src/lagrangian/solidParticle/solidParticle.C index 943f771d91..c508a9daed 100644 --- a/src/lagrangian/solidParticle/solidParticle.C +++ b/src/lagrangian/solidParticle/solidParticle.C @@ -50,7 +50,7 @@ bool Foam::solidParticle::move { if (debug) { - Info<< "Time = " << mesh().time().timeName() + Pout<< "Time = " << mesh().time().timeName() << " trackTime = " << trackTime << " steptFraction() = " << stepFraction() << endl; }