diff --git a/applications/utilities/mesh/manipulation/checkMesh/checkGeometry.C b/applications/utilities/mesh/manipulation/checkMesh/checkGeometry.C index c9fee2364d..7ec94c7e6f 100644 --- a/applications/utilities/mesh/manipulation/checkMesh/checkGeometry.C +++ b/applications/utilities/mesh/manipulation/checkMesh/checkGeometry.C @@ -964,6 +964,13 @@ Foam::label Foam::checkGeometry : patchWriter() ); + // Currently only do AMI checks + + const fileName outputDir + ( + mesh.time().globalPath()/functionObject::outputPrefix/"checkMesh" + ); + forAll(pbm, patchi) { if (isA(pbm[patchi])) @@ -1021,8 +1028,11 @@ Foam::label Foam::checkGeometry { wr.write ( - functionObject::outputPrefix, - "src_" + tmName, + outputDir, + ( + "patch" + Foam::name(cpp.index()) + + "-src_" + tmName + ), meshedSurfRef ( mergedPoints, @@ -1054,8 +1064,11 @@ Foam::label Foam::checkGeometry { wr.write ( - functionObject::outputPrefix, - "src_" + tmName, + outputDir, + ( + "patch" + Foam::name(cpp.index()) + + "-src_" + tmName + ), meshedSurfRef ( mergedPoints, @@ -1109,8 +1122,11 @@ Foam::label Foam::checkGeometry { wr.write ( - functionObject::outputPrefix, - "tgt_" + tmName, + outputDir, + ( + "patch" + Foam::name(cpp.index()) + + "-tgt_" + tmName + ), meshedSurfRef ( mergedPoints, @@ -1142,8 +1158,11 @@ Foam::label Foam::checkGeometry { wr.write ( - functionObject::outputPrefix, - "tgt_" + tmName, + outputDir, + ( + "patch" + Foam::name(cpp.index()) + + "-tgt_" + tmName + ), meshedSurfRef ( mergedPoints, diff --git a/applications/utilities/mesh/manipulation/checkMesh/checkTools.C b/applications/utilities/mesh/manipulation/checkMesh/checkTools.C index 76e4fc5b18..29d2437767 100644 --- a/applications/utilities/mesh/manipulation/checkMesh/checkTools.C +++ b/applications/utilities/mesh/manipulation/checkMesh/checkTools.C @@ -284,8 +284,7 @@ void Foam::mergeAndWrite fileName outputDir ( - set.time().path() - / (Pstream::parRun() ? ".." : "") + set.time().globalPath() / functionObject::outputPrefix / mesh.pointsInstance() / set.name() @@ -378,8 +377,7 @@ void Foam::mergeAndWrite fileName outputDir ( - set.time().path() - / (Pstream::parRun() ? ".." : "") + set.time().globalPath() / functionObject::outputPrefix / mesh.pointsInstance() / set.name() @@ -478,8 +476,7 @@ void Foam::mergeAndWrite // postProcessing/