From 4dafaa8cfe9c9e15bd952deb59a1e7d33da00a8c Mon Sep 17 00:00:00 2001 From: Mark Olesen Date: Fri, 16 Dec 2022 10:13:00 +0100 Subject: [PATCH] STYLE: dump debug interpolation files to processor-specific names --- .../pointToPointPlanarInterpolation.C | 31 ++++++++++++++----- 1 file changed, 23 insertions(+), 8 deletions(-) diff --git a/src/meshTools/triSurface/triSurfaceTools/pointToPointPlanarInterpolation.C b/src/meshTools/triSurface/triSurfaceTools/pointToPointPlanarInterpolation.C index 57bdc5eae6..1f70a3b668 100644 --- a/src/meshTools/triSurface/triSurfaceTools/pointToPointPlanarInterpolation.C +++ b/src/meshTools/triSurface/triSurfaceTools/pointToPointPlanarInterpolation.C @@ -183,7 +183,10 @@ void Foam::pointToPointPlanarInterpolation::calcWeights << endl; } - OBJstream str("destToSource.obj"); + OBJstream str + ( + "destToSource_" + Foam::name(UPstream::myProcNo()) + ".obj" + ); Pout<< "pointToPointPlanarInterpolation::calcWeights :" << " Dumping lines from face centres to original points to " << str.name() << endl; @@ -232,15 +235,24 @@ void Foam::pointToPointPlanarInterpolation::calcWeights if (debug) { - Pout<< "pointToPointPlanarInterpolation::calcWeights :" - <<" Dumping triangulated surface to triangulation.stl" << endl; - s.write("triangulation.stl"); + fileName outName + ( + "triangulation_" + Foam::name(UPstream::myProcNo()) + ".obj" + ); - OBJstream str("localFaceCentres.obj"); Pout<< "pointToPointPlanarInterpolation::calcWeights :" - << " Dumping face centres to " << str.name() << endl; + <<" Dumping triangulated surface to " << outName << endl; - str.write(localFaceCentres); + s.write(outName); + + OBJstream os + ( + "localFaceCentres_" + Foam::name(UPstream::myProcNo()) + ".obj" + ); + Pout<< "pointToPointPlanarInterpolation::calcWeights :" + << " Dumping face centres to " << os.name() << endl; + + os.write(localFaceCentres); } // Determine interpolation onto face centres. @@ -261,7 +273,10 @@ void Foam::pointToPointPlanarInterpolation::calcWeights << endl; } - OBJstream str("stencil.obj"); + OBJstream str + ( + "stencil_" + Foam::name(UPstream::myProcNo()) + ".obj" + ); Pout<< "pointToPointPlanarInterpolation::calcWeights :" << " Dumping stencil to " << str.name() << endl;