~njansson/dolfin/hpc

« back to all changes in this revision

Viewing changes to bench/fem/assembly/PoissonP3.form

  • Committer: Anders Logg
  • Date: 2008-06-12 20:00:04 UTC
  • mfrom: (2668.1.54 trunk)
  • Revision ID: logg@simula.no-20080612200004-3t5tw0tes2zdaqb4
Merge

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# Copyright (C) 2005-2007 Anders Logg.
 
2
# Licensed under the GNU LGPL Version 2.1.
 
3
#
 
4
# First added:  2005
 
5
# Last changed: 2007-05-14
 
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 -l dolfin Poisson.form.
 
11
 
 
12
element = FiniteElement("Lagrange", "triangle", 3)
 
13
 
 
14
v = TestFunction(element)
 
15
u = TrialFunction(element)
 
16
f = Function(element)
 
17
g = Function(element)
 
18
 
 
19
a = dot(grad(v), grad(u))*dx
 
20
L = v*f*dx