Skip to content
  • Mark OLESEN's avatar
    ENH: added polyBoundaryMesh patchID(meshFacei) method · f462a850
    Mark OLESEN authored
    - this complements the whichPatch(meshFacei) method [binary search]
      and the list of patchID() by adding internal range checks.
    
      eg,
         Before
         ~~~~~~
         if (facei >= mesh.nInternalFaces() && facei < mesh.nFaces())
         {
             patchi = pbm.patchID()[facei - mesh.nInternalFaces()];
             ...
         }
    
         After
         ~~~~~
         patchi = pbm.patchID(facei);
    
         if (patchi >= 0)
         {
             ...
         }
    f462a850