File: WeightedPoisson_2D_4.ufl

package info (click to toggle)
ffc 0.9.3-1
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 31,928 kB
  • ctags: 5,610
  • sloc: cpp: 200,834; python: 14,417; perl: 351; makefile: 21; sh: 6
file content (10 lines) | stat: -rw-r--r-- 275 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
# Copyright (C) 2010 Anders Logg (logg@simula.no).
# Licensed under the GNU GPL version 3 or any later version.

element = FiniteElement("Lagrange", triangle, 4)

v = TestFunction(element)
u = TrialFunction(element)
c = Coefficient(element)

a = c*inner(grad(v), grad(u))*dx