~njansson/dolfin/hpc

« back to all changes in this revision

Viewing changes to dolfin/mesh/Mesh.cpp

  • Committer: Anders Logg
  • Date: 2008-05-28 08:13:15 UTC
  • mto: (2668.1.38 trunk)
  • mto: This revision was merged to the branch mainline in revision 2670.
  • Revision ID: logg@simula.no-20080528081315-fgsvgvhtxt8h54rv
Remove vertex_map and cell_map from BoundaryMesh interface.
They are now instead available as mesh data named "vertex map" and "cell map".

Show diffs side-by-side

added added

removed removed

Lines of Context:
159
159
  for (VertexIterator v(*this); !v.end(); ++v)
160
160
    bnd_vertex.set(v->index(),false);
161
161
 
162
 
  MeshFunction<uint> bnd_vertex_map; 
163
 
  MeshFunction<uint> bnd_cell_map; 
164
 
  BoundaryMesh boundary(*this,bnd_vertex_map,bnd_cell_map);
 
162
  BoundaryMesh boundary(*this);
 
163
  MeshFunction<uint>* bnd_vertex_map = boundary.data().meshFunction("vertex map");
 
164
  dolfin_assert(bnd_vertex_map);
165
165
 
166
166
  for (VertexIterator v(boundary); !v.end(); ++v)
167
 
    bnd_vertex.set(bnd_vertex_map.get(v->index()),true);
 
167
    bnd_vertex.set(bnd_vertex_map->get(v->index()),true);
168
168
 
169
169
  Point midpoint = 0.0; 
170
170
  uint num_neighbors = 0;