~corrado-maurini/dolfin/tao

« back to all changes in this revision

Viewing changes to demo/undocumented/meshfunction-refinement/cpp/main.cpp

  • Committer: corrado maurini
  • Date: 2012-12-18 12:16:08 UTC
  • mfrom: (6685.78.207 trunk)
  • Revision ID: corrado.maurini@upmc.fr-20121218121608-nk82ly9jgsld9u84
updating with trunk, fix uint in TAO solver and hacking the check for tao FindTAO.cmake

Show diffs side-by-side

added added

removed removed

Lines of Context:
41
41
    }
42
42
  };
43
43
 
44
 
  UnitSquare mesh(5, 5);
 
44
  UnitSquareMesh mesh(5, 5);
45
45
 
46
46
  // Create MeshFunction over cells
47
 
  MeshFunction<unsigned int> right_cells(mesh, mesh.topology().dim(), 0);
 
47
  MeshFunction<std::size_t> right_cells(mesh, mesh.topology().dim(), 0);
48
48
  Right right;
49
49
  right.mark(right_cells, 1);
50
50
 
51
51
  // Create MeshFunction over facets
52
 
  MeshFunction<unsigned int> inflow_facets(mesh, mesh.topology().dim() - 1, 0);
 
52
  MeshFunction<std::size_t> inflow_facets(mesh, mesh.topology().dim() - 1, 0);
53
53
  Inflow inflow;
54
54
  inflow.mark(inflow_facets, 1);
55
55