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)
|
if (debugTgtFace)
|
||||||
{
|
{
|
||||||
writeFaceOBJ(tgtFace, tgtPoints, "target" + std::to_string(tgtFacei));
|
writeFaceOBJ(tgtFace, tgtPoints, "target" + name(tgtFacei));
|
||||||
}
|
}
|
||||||
|
|
||||||
// Triangulate the faces
|
// Triangulate the faces
|
||||||
@ -493,7 +493,7 @@ Foam::scalar Foam::sweptFaceAreaWeightAMI<SourcePatch, TargetPatch>::interArea
|
|||||||
// Write the triangles resulting from the cut
|
// Write the triangles resulting from the cut
|
||||||
if (debugWrite)
|
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
|
writeCutTrisVTK
|
||||||
(
|
(
|
||||||
cutTris,
|
cutTris,
|
||||||
"target" + std::to_string(tgtFacei) + "_"
|
"target" + name(tgtFacei) + "_"
|
||||||
+ "tris" + std::to_string(writeCutTrisVTKIndex ++)
|
+ "tris" + name(writeCutTrisVTKIndex ++)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
if (debugWrite)
|
if (debugWrite)
|
||||||
{
|
{
|
||||||
writeCutTrisVTK(cutTris, "tris" + std::to_string(srcN));
|
writeCutTrisVTK(cutTris, "tris" + name(srcN));
|
||||||
|
|
||||||
Info << "view triangles then press ENTER to continue ...";
|
Info << "view triangles then press ENTER to continue ...";
|
||||||
getchar();
|
getchar();
|
||||||
|
|||||||
Reference in New Issue
Block a user