lib/src/EBTools/EBIndexSpace.cpp
// Divide the EBIndexSpace into connected components and return the
// EBIndexSpace corresponding to the largest connected component.
Divide the EBIndexSpace into connected components and return the
EBIndexSpace corresponding to the largest connected component.
Divide the EBIndexSpace into connected components and return the EBIndexSpace corresponding to the largest connected component .
RefCountedPtr<EBIndexSpace> EBIndexSpace::biggestConnectedComponent(int & a_numComponents)
{
  CH_TIME("EBIndexSpace::biggestConnectedComponent");
  bool onlyBiggest = true;
  Vector<RefCountedPtr<EBIndexSpace> > biggest = findConnectedComponents(a_numComponents,onlyBiggest);
  if (biggest.size() != 1)
  {
    MayDay::Error("EBIndexSpace::connectedComponents didn't return one EBIndexSpace when asked for only the biggest component");
  }
  return biggest[0];
}
RefCountedPtr < EBIndexSpace > EBIndexSpace :: biggestConnectedComponent ( int & a_numComponents ) { CH_TIME ( " " ) ; bool onlyBiggest = true ; Vector < RefCountedPtr < EBIndexSpace > > biggest = findConnectedComponents ( a_numComponents , onlyBiggest ) ; if ( biggest . size ( ) != 1 ) { MayDay :: Error ( " " ) ; } return biggest [ 0 ] ; }
Divide the EBIndexSpace into connected components and return the
EBIndexSpace corresponding to the largest connected component.
Divide the EBIndexSpace into connected components and return the EBIndexSpace corresponding to the largest connected component .