~ubuntu-branches/ubuntu/raring/ffc/raring

« back to all changes in this revision

Viewing changes to test/unit/symbolics/testelasweighted.py

  • Committer: Bazaar Package Importer
  • Author(s): Johannes Ring
  • Date: 2010-07-01 19:54:32 UTC
  • mfrom: (1.1.5 upstream)
  • Revision ID: james.westby@ubuntu.com-20100701195432-xz3gw5nprdj79jcb
Tags: 0.9.3-1
* New upstream release.
* debian/control:
  - Minor fix in Vcs fields.
  - Bump Standards-Version to 3.9.0 (no changes needed).
  - Update version for python-ufc, python-fiat, and python-ufl in
    Depends field.
* Switch to dpkg-source 3.0 (quilt) format.
* Update debian/copyright and debian/copyright_hints.

Show diffs side-by-side

added added

removed removed

Lines of Context:
5
5
__copyright__ = "Copyright (C) 2010 Kristian B. Oelgaard"
6
6
__license__  = "GNU GPL version 3 or any later version"
7
7
 
8
 
# Last changed: 2010-02-01
 
8
# Last changed: 2010-03-11
9
9
 
10
10
# Pyhton modules
11
11
import unittest
88
88
        opt_code = optimise_code(expr, ip_consts, geo_consts, trans_set)
89
89
#        print "ElasWeighted, optimise_code(): ", time.time() - start
90
90
 
91
 
        G0 = eval(str(geo_consts.items()[0][0]))
92
 
        Gip0 = eval(str(ip_consts.items()[0][0]))
 
91
        G = [eval(str(geo_consts.items()[0][0]))]
 
92
        I = [eval(str(ip_consts.items()[0][0]))]
93
93
        self.assertAlmostEqual(eval(str(expr)), eval(str(opt_code)))
94
94
 
95
95
if __name__ == "__main__":