~ubuntu-branches/ubuntu/wily/dolfin/wily-proposed

« back to all changes in this revision

Viewing changes to dolfin/refinement/UniformMeshRefinement.cpp

  • Committer: Package Import Robot
  • Author(s): Johannes Ring
  • Date: 2014-09-22 14:35:34 UTC
  • mfrom: (1.1.17) (19.1.23 sid)
  • Revision ID: package-import@ubuntu.com-20140922143534-0yi89jyuqbgdxwm9
Tags: 1.4.0+dfsg-4
* debian/control: Disable libcgal-dev on i386, mipsel and sparc.
* debian/rules: Remove bad directives in pkg-config file dolfin.pc
  (closes: #760658).
* Remove debian/libdolfin-dev.lintian-overrides.

Show diffs side-by-side

added added

removed removed

Lines of Context:
18
18
// Modified by Garth N. Wells, 2010
19
19
//
20
20
// First added:  2006-06-08
21
 
// Last changed: 2011-04-07
 
21
// Last changed: 2014-02-06
22
22
 
23
23
#include <dolfin/math/dolfin_math.h>
24
24
#include <dolfin/log/dolfin_log.h>
76
76
  const std::size_t num_cells = mesh.size(mesh.topology().dim());
77
77
 
78
78
  // Specify number of vertices and cells
79
 
  editor.init_vertices(num_vertices + num_edges);
80
 
  editor.init_cells(ipow(2, mesh.topology().dim())*num_cells);
 
79
  editor.init_vertices_global(num_vertices + num_edges, num_vertices + num_edges);
 
80
  editor.init_cells_global(ipow(2, mesh.topology().dim())*num_cells,
 
81
                           ipow(2, mesh.topology().dim())*num_cells);
81
82
 
82
83
  // Add old vertices
83
84
  std::size_t vertex = 0;