Skip to content
Snippets Groups Projects
Commit d5644058 authored by mattijs's avatar mattijs
Browse files

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

Also output target weights
parent 504f5a8a
Branches
Tags
No related merge requests found
...@@ -1157,6 +1157,34 @@ Foam::label Foam::checkGeometry ...@@ -1157,6 +1157,34 @@ Foam::label Foam::checkGeometry
globalFaces, globalFaces,
globalPoints 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
);
}
} }
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment