~mapdes/ffc/pyop2

« back to all changes in this revision

Viewing changes to ffc/evaluatebasis.py

  • Committer: Graham Markall
  • Date: 2013-01-16 10:13:54 UTC
  • mfrom: (1753.1.14 trunk)
  • Revision ID: grm08@doc.ic.ac.uk-20130116101354-35f8gw21g8ec83ub
Merge FFC trunk revision 1767

Show diffs side-by-side

added added

removed removed

Lines of Context:
654
654
        code += [f_assign(f_component(f_basisvalue, 0), f_float(1.0))]
655
655
 
656
656
        def _idx2d(p, q):
657
 
            return (p+q)*(p+q+1)/2 + q
 
657
            return (p + q)*(p + q + 1)//2 + q
658
658
 
659
659
        # Only continue if the embedded degree is larger than zero.
660
660
        if embedded_degree > 0: