Merging Martin's tutorial fixes
[openfoam-extend-OpenFOAM-1.6-ext.git] / applications / solvers / conjugate / conjugateHeatFoam / detachPatches.H
blob30e3ebe30a16c9f4aa97b60adf95a2f0270ac27a
2     const polyPatchList& patches = mesh.boundaryMesh();
4     forAll (patches, patchI)
5     {
6         if (isType<regionCouplePolyPatch>(patches[patchI]))
7         {
8             const regionCouplePolyPatch& rcp =
9                 refCast<const regionCouplePolyPatch>(patches[patchI]);
11             // Detach it here
12             rcp.detach();
13         }
14     }
16     // Force recalculation of weights
17     mesh.surfaceInterpolation::movePoints();