STYLE: dump debug interpolation files to processor-specific names

This commit is contained in:
Mark Olesen
2022-12-16 10:13:00 +01:00
parent ec77d3152b
commit 4dafaa8cfe

View File

@ -183,7 +183,10 @@ void Foam::pointToPointPlanarInterpolation::calcWeights
<< endl; << endl;
} }
OBJstream str("destToSource.obj"); OBJstream str
(
"destToSource_" + Foam::name(UPstream::myProcNo()) + ".obj"
);
Pout<< "pointToPointPlanarInterpolation::calcWeights :" Pout<< "pointToPointPlanarInterpolation::calcWeights :"
<< " Dumping lines from face centres to original points to " << " Dumping lines from face centres to original points to "
<< str.name() << endl; << str.name() << endl;
@ -232,15 +235,24 @@ void Foam::pointToPointPlanarInterpolation::calcWeights
if (debug) if (debug)
{ {
Pout<< "pointToPointPlanarInterpolation::calcWeights :" fileName outName
<<" Dumping triangulated surface to triangulation.stl" << endl; (
s.write("triangulation.stl"); "triangulation_" + Foam::name(UPstream::myProcNo()) + ".obj"
);
OBJstream str("localFaceCentres.obj");
Pout<< "pointToPointPlanarInterpolation::calcWeights :" 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. // Determine interpolation onto face centres.
@ -261,7 +273,10 @@ void Foam::pointToPointPlanarInterpolation::calcWeights
<< endl; << endl;
} }
OBJstream str("stencil.obj"); OBJstream str
(
"stencil_" + Foam::name(UPstream::myProcNo()) + ".obj"
);
Pout<< "pointToPointPlanarInterpolation::calcWeights :" Pout<< "pointToPointPlanarInterpolation::calcWeights :"
<< " Dumping stencil to " << str.name() << endl; << " Dumping stencil to " << str.name() << endl;