mirror of
https://github.com/OpenFOAM/OpenFOAM-6.git
synced 2025-12-08 06:57:46 +00:00
sweptFaceAreaWeightAMI: Replaced std::to_string with Foam::name
Resolves bug report https://bugs.openfoam.org/view.php?id=2873
This commit is contained in:
@ -391,7 +391,7 @@ Foam::scalar Foam::sweptFaceAreaWeightAMI<SourcePatch, TargetPatch>::interArea
|
||||
}
|
||||
if (debugTgtFace)
|
||||
{
|
||||
writeFaceOBJ(tgtFace, tgtPoints, "target" + std::to_string(tgtFacei));
|
||||
writeFaceOBJ(tgtFace, tgtPoints, "target" + name(tgtFacei));
|
||||
}
|
||||
|
||||
// Triangulate the faces
|
||||
@ -493,7 +493,7 @@ Foam::scalar Foam::sweptFaceAreaWeightAMI<SourcePatch, TargetPatch>::interArea
|
||||
// Write the triangles resulting from the cut
|
||||
if (debugWrite)
|
||||
{
|
||||
writeCutTrisVTK(cutTris, "tris" + std::to_string(i + 1));
|
||||
writeCutTrisVTK(cutTris, "tris" + name(i + 1));
|
||||
}
|
||||
}
|
||||
|
||||
@ -543,13 +543,13 @@ Foam::scalar Foam::sweptFaceAreaWeightAMI<SourcePatch, TargetPatch>::interArea
|
||||
writeCutTrisVTK
|
||||
(
|
||||
cutTris,
|
||||
"target" + std::to_string(tgtFacei) + "_"
|
||||
+ "tris" + std::to_string(writeCutTrisVTKIndex ++)
|
||||
"target" + name(tgtFacei) + "_"
|
||||
+ "tris" + name(writeCutTrisVTKIndex ++)
|
||||
);
|
||||
}
|
||||
if (debugWrite)
|
||||
{
|
||||
writeCutTrisVTK(cutTris, "tris" + std::to_string(srcN));
|
||||
writeCutTrisVTK(cutTris, "tris" + name(srcN));
|
||||
|
||||
Info << "view triangles then press ENTER to continue ...";
|
||||
getchar();
|
||||
|
||||
Reference in New Issue
Block a user