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

« back to all changes in this revision

Viewing changes to demo/undocumented/plot/python/demo_plot.py

  • 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:
25
25
# Last changed: 2012-11-12
26
26
 
27
27
from dolfin import *
28
 
import os.path
29
28
from math import sqrt
30
29
import numpy
31
30
 
32
31
import sys
33
32
 
34
33
# Read mesh from file
35
 
mesh = Mesh(os.path.join(os.path.pardir, "dolfin-2.xml.gz"))
 
34
mesh = Mesh("../dolfin_fine.xml.gz")
36
35
 
37
36
# Decide which demos to run
38
37
demos = map(int, sys.argv[1:]) or [0, 1, 2]