I have following c++ codes:
//get exterior facets connected with a facet.
bool get_exterior( Mesh & mesh, FacetIterator & fi, std::vector & ex)
{
for( FacetIterator a = FacetIterator(fi);!a.end();++a)
{
if(!a->exterior())
continue;
Facet f=Facet(mesh,a->index());
ex.push_back(f);
}
}
It works perfectly on Fenics 1.3. After upgrading to 1.6, The FacetIteractor can only found 1 connected facet which is the facet itself. Can not find other connected facets. Can any one help?
P.S. mesh.init(2,2) was called to make sure face to face connectivity was established.
Thanks!