~corrado-maurini/dolfin/tao

« back to all changes in this revision

Viewing changes to demo/undocumented/nonmatching-projection/python/demo_nonmatching-projection.py

  • 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:
21
21
# Modified by Anders Logg 2011
22
22
#
23
23
# First added:  2009-10-10
24
 
# Last changed: 2011-06-28
 
24
# Last changed: 2012-11-12
25
25
 
26
26
from dolfin import *
27
27
 
28
28
# Create mesh and define function spaces
29
 
mesh0 = UnitSquare(16, 16)
30
 
mesh1 = UnitSquare(64, 64)
 
29
mesh0 = UnitSquareMesh(16, 16)
 
30
mesh1 = UnitSquareMesh(64, 64)
31
31
 
32
32
# Create expression on P3
33
33
u0 = Expression("sin(10.0*x[0])*sin(10.0*x[1])", degree=3)