~njansson/dolfin/hpc

« back to all changes in this revision

Viewing changes to src/kernel/mf/ffc-forms/StiffnessMatrix2D.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:  2005-06-05
 
5
# Last changed: 2006-03-28
 
6
#
 
7
# The bilinear form for a stiffness matrix (Poisson).
 
8
 
 
9
element = FiniteElement("Lagrange", "triangle", 1)
 
10
 
 
11
v = TestFunction(element)
 
12
U = TrialFunction(element)
 
13
c = Constant()
 
14
 
 
15
a = c*dot(grad(v), grad(U))*dx