diff --git a/applications/utilities/mesh/manipulation/createPatch/createPatch.C b/applications/utilities/mesh/manipulation/createPatch/createPatch.C index 01df2c2f28..a993ecf92a 100644 --- a/applications/utilities/mesh/manipulation/createPatch/createPatch.C +++ b/applications/utilities/mesh/manipulation/createPatch/createPatch.C @@ -625,10 +625,8 @@ int main(int argc, char *argv[]) << " as patch " << destPatchI << " from " << patchDict << endl; - patchDict.remove("nFaces"); - patchDict.add("nFaces", 0); - patchDict.remove("startFace"); - patchDict.add("startFace", startFaceI); + patchDict.set("nFaces", 0); + patchDict.set("startFace", startFaceI); // Add an empty patch. allPatches.append diff --git a/applications/utilities/parallelProcessing/reconstructParMesh/Make/options b/applications/utilities/parallelProcessing/reconstructParMesh/Make/options index 73f34b0f85..f9b5424edd 100644 --- a/applications/utilities/parallelProcessing/reconstructParMesh/Make/options +++ b/applications/utilities/parallelProcessing/reconstructParMesh/Make/options @@ -1,5 +1,6 @@ EXE_INC = \ -I$(LIB_SRC)/dynamicMesh/lnInclude \ + -I$(LIB_SRC)/finiteVolume/lnInclude \ -I$(LIB_SRC)/meshTools/lnInclude EXE_LIBS = \ diff --git a/applications/utilities/parallelProcessing/reconstructParMesh/reconstructParMesh.C b/applications/utilities/parallelProcessing/reconstructParMesh/reconstructParMesh.C index e824c20e39..bfd6ae083b 100644 --- a/applications/utilities/parallelProcessing/reconstructParMesh/reconstructParMesh.C +++ b/applications/utilities/parallelProcessing/reconstructParMesh/reconstructParMesh.C @@ -46,6 +46,8 @@ Description #include "mapAddedPolyMesh.H" #include "polyMeshAdder.H" #include "faceCoupleInfo.H" +#include "fvMeshAdder.H" +#include "polyTopoChange.H" using namespace Foam; @@ -203,6 +205,78 @@ autoPtr determineCoupledFaces } +autoPtr mergeSharedPoints +( + const scalar mergeDist, + polyMesh& mesh, + labelListList& pointProcAddressing +) +{ + // Find out which sets of points get merged and create a map from + // mesh point to unique point. + Map