~ubuntu-branches/ubuntu/vivid/ffc/vivid

« back to all changes in this revision

Viewing changes to demo/SpatialCoordinates.ufl

  • Committer: Package Import Robot
  • Author(s): Johannes Ring
  • Date: 2014-06-03 18:26:02 UTC
  • mfrom: (1.1.15)
  • Revision ID: package-import@ubuntu.com-20140603182602-zvnubjjh7i78e1v0
Tags: 1.4.0-1
* New upstream release.
* debian/control:
  - Add swig in Build-Depends.
  - Remove python-ufc from Depends.
  - Add ufc and python-ufc to Provides, Conflicts and Replaces.
  - Remove python-ferari and python-dolfin from Suggests.
  - Bump minimum required version for python-fiat, python-instant and
    python-ufl to 1.4.0.
* debian/rules: Add override for auto clean target to remove generated
  cmake and pkg-config files.

Show diffs side-by-side

added added

removed removed

Lines of Context:
26
26
u = TrialFunction(element)
27
27
v = TestFunction(element)
28
28
 
29
 
x = triangle.x[0]
30
 
d_x = triangle.x[0] - 0.5
31
 
d_y = triangle.x[1] - 0.5
 
29
x = SpatialCoordinate(triangle)
 
30
d_x = x[0] - 0.5
 
31
d_y = x[1] - 0.5
32
32
f = 10.0*exp(-(d_x*d_x + d_y*d_y) / 0.02)
33
 
g = sin(5.0*x)
 
33
g = sin(5.0*x[0])
34
34
 
35
35
a = inner(grad(u), grad(v))*dx
36
36
L = f*v*dx + g*v*ds