~ubuntu-branches/ubuntu/utopic/ffc/utopic

« back to all changes in this revision

Viewing changes to demo/Normals.ufl

  • Committer: Bazaar Package Importer
  • Author(s): Johannes Ring
  • Date: 2011-05-18 11:22:37 UTC
  • mfrom: (1.1.8 upstream)
  • Revision ID: james.westby@ubuntu.com-20110518112237-22o6lwrno3uf0jyz
Tags: 0.9.10-1
* New upstream release. This release introduces some new features and
  some behind-the-scenes improvements. Special quadrature schemes for
  simplices have been added, which will lead to improved performance
  when using the quadrature representation for low-order forms.
* Move from python-central to dh_python2 (closes: #616807).
  - Remove python-central from Build-Depends.
  - Bump minimum required python-all package version to 2.6.6-3~.
  - Remove XB-Python-Version line.
  - Bump minimum required cdbs version to 0.4.90~.
  - Remove DEB_PYTHON_SYSTEM=pycentral from debian/rules.
  - Replace XS-Python-Version with X-Python-Version.
* debian/rules:
  - Avoid compressing files with .ufl extension.
  - Use DEB_COMPRESS_EXCLUDE_ALL instead of deprecated
    DEB_COMPRESS_EXCLUDE.
  - Include cdbs utils.mk rule for automated copyright checks.
* Remove old custom cdbs rules and licensecheck script for copyright
  check.
* Bump Standards-Version to 3.9.2 (no changes needed).
* debian/copyright:
  - Update for upstream license change to LGPLv3.
  - Switch to DEP-5 format.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# Copyright (C) 2009 Peter Brune (brune@uchicago.edu)
2
 
# Licensed under the GNU GPL version 3 or any later version
 
1
# Copyright (C) 2009 Peter Brune
 
2
#
 
3
# This file is part of FFC.
 
4
#
 
5
# FFC is free software: you can redistribute it and/or modify
 
6
# it under the terms of the GNU Lesser General Public License as published by
 
7
# the Free Software Foundation, either version 3 of the License, or
 
8
# (at your option) any later version.
 
9
#
 
10
# FFC is distributed in the hope that it will be useful,
 
11
# but WITHOUT ANY WARRANTY; without even the implied warranty of
 
12
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
13
# GNU Lesser General Public License for more details.
 
14
#
 
15
# You should have received a copy of the GNU Lesser General Public License
 
16
# along with FFC.  If not, see <http://www.gnu.org/licenses/>.
3
17
#
4
18
# This example demonstrates how to use the facet normals
5
19
# Merely project the normal onto a vector section
12
26
 
13
27
n = cell.n
14
28
 
 
29
v = TrialFunction(element)
15
30
u = TestFunction(element)
16
 
v = TrialFunction(element)
17
31
 
18
 
a = dot(u, v)*ds
19
 
L = dot(n, v)*ds
 
32
a = dot(v, u)*ds
 
33
L = dot(n, u)*ds