~johan-hake/dolfin/general-rk-solver

« back to all changes in this revision

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

  • Committer: Johan Hake
  • Date: 2013-03-27 15:18:08 UTC
  • mfrom: (7352.1.227 working)
  • Revision ID: hake.dev@gmail.com-20130327151808-b73d4pueq1n432hg
Merge with trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
26
26
 
27
27
int main()
28
28
{
29
 
  Mesh mesh("../mesh2D.xml.gz");
 
29
  Mesh mesh("../unitsquare_2_2.xml.gz");
30
30
 
31
31
  // Read mesh function from file (new style)
32
 
  File in("../meshfunction.xml");
 
32
  File in("../unitsquare_2_2_subdomains.xml.gz");
33
33
  MeshFunction<double> f(mesh);
34
34
  in >> f;
35
35
 
36
36
  // Write mesh function to file (new style)
37
 
  File out("meshfunction_out.xml");
 
37
  File out("meshfunction_out.xml.gz");
38
38
  out << f;
39
39
 
40
40
  // Plot mesh function