Fixing indentation in applications/solvers/solidMechanics
[foam-extend-3.2.git] / applications / solvers / solidMechanics / elasticPlasticNonLinULSolidFoam / findBoundaryPoints.H
blobca40c856ad08d91580b1881bff360dae736ac5a7
1 //void volPointInterpolation::makeBoundaryAddressing() const
2 //{
4 // Go through all patches and mark up the external edge points
5 labelHashSet pointsCorrectionMap(max(mesh.nPoints()/10, 100));
7 const fvBoundaryMesh& bm = mesh.boundary();
9 forAll (bm, patchI)
11     // If the patch is empty, skip it
12     // If the patch is coupled, and there are no cyclic parallels, skip it
13     if
14     (
15         !isA<emptyFvPatch>(bm[patchI])
16         && !(
17             bm[patchI].coupled()
18             //&& Pstream::parRun()
19             //&& !mesh.parallelData().cyclicParallel()
20         )
21     )
22     {
23         const labelList& bp = bm[patchI].patch().boundaryPoints();
25         const labelList& meshPoints = bm[patchI].patch().meshPoints();
27         forAll (bp, pointI)
28         {
29             pointsCorrectionMap.insert(meshPoints[bp[pointI]]);
30         }
31     }
34 // Grab the points to correct
35 //boundaryPointsPtr_ = new labelList(pointsCorrectionMap.toc());
36 //labelList& ptc = *boundaryPointsPtr_;
37 labelList ptc(pointsCorrectionMap.toc());
39 sort(ptc);