ENH: checkMesh: output AMI weights on mapped. Fixes #2356.

Also output target weights
This commit is contained in:
mattijs
2022-02-17 09:31:20 +00:00
parent 504f5a8a14
commit d5644058b2

View File

@ -1157,6 +1157,34 @@ Foam::label Foam::checkGeometry
globalFaces,
globalPoints
);
if (cpp.sameWorld())
{
//- Get the patch on the region
const polyPatch& nbrPp = cpp.samplePolyPatch();
// Collect neighbour geometry
faceList mergedFaces;
pointField mergedPoints;
autoPtr<globalIndex> globalFaces;
autoPtr<globalIndex> globalPoints;
collectAndWriteAMIWeights
(
cpp.sampleMesh(),
wr,
outputDir / pName + "-tgt_" + tmName,
ami.tgtWeightsSum(),
nbrPp.localFaces(),
nbrPp.meshPoints(),
nbrPp.meshPointMap(),
mergedFaces,
mergedPoints,
globalFaces,
globalPoints
);
}
}
}
}