~njansson/dolfin/hpc

« back to all changes in this revision

Viewing changes to src/test/tmp/L2Norm.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 (logg@tti-c.org)
 
2
# Licensed under the GNU GPL Version 2
 
3
#
 
4
# First added:  2004
 
5
# Last changed: 2006-03-28
 
6
#
 
7
# Testing computation of functionals using the old approach,
 
8
# by assembling a LinearForm in a Vector and summing the entries.
 
9
 
 
10
P0 = FiniteElement("Discontinuous Lagrange", "triangle", 0)
 
11
P1 = FiniteElement("Lagrange", "triangle", 1)
 
12
 
 
13
v = TestFunction(P0)
 
14
f = Function(P1)
 
15
g = Function(P1)
 
16
 
 
17
e = f - g
 
18
 
 
19
L = v*e*e*dx