~njansson/dolfin/hpc

« back to all changes in this revision

Viewing changes to sandbox/ilmarw/test/Poisson.py

  • Committer: Ilmar Wilbers
  • Date: 2008-05-23 10:52:27 UTC
  • mto: (2668.1.38 trunk)
  • mto: This revision was merged to the branch mainline in revision 2670.
  • Revision ID: ilmarw@simula.no-20080523105227-vctvs79hp30m47se
Added test to sandbox/ilmarw.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
from ffc import *
 
2
 
 
3
# Reserved variables for forms
 
4
(a, L, M) = (None, None, None)
 
5
 
 
6
# Reserved variable for element
 
7
element = None
 
8
 
 
9
element = FiniteElement("Lagrange", "tetrahedron", 1)
 
10
 
 
11
v = TestFunction(element)
 
12
u = TrialFunction(element)
 
13
 
 
14
a = dot(grad(v), grad(u))*dx
 
15
 
 
16
compile([a, L, M, element], "Poisson", "tensor", "dolfin", {'quadrature_points=': False, 'blas': False, 'precision=': '15', 'optimize': False})