~njansson/dolfin/hpc

« back to all changes in this revision

Viewing changes to src/bench/la/sparse-matrix/Poisson.form

  • Committer: Anders Logg
  • Date: 2007-01-10 09:04:44 UTC
  • mfrom: (1689.1.221 trunk)
  • Revision ID: logg@simula.no-20070110090444-ecyux3n1qnei4i8h
RemoveĀ oldĀ head

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# Copyright (C) 2005-2006 Anders Logg.
 
2
# Licensed under the GNU GPL Version 2.
 
3
#
 
4
# First added:  2005
 
5
# Last changed: 2006-03-28
 
6
#
 
7
# The bilinear form a(v, U) and linear form L(v) for
 
8
# Poisson's equation.
 
9
#
 
10
# Compile this form with FFC: ffc poisson.form.
 
11
 
 
12
element = FiniteElement("Lagrange", "triangle", 1)
 
13
 
 
14
v = TestFunction(element)
 
15
U = TrialFunction(element)
 
16
 
 
17
a = dot(grad(v), grad(U))*dx