Closed kynan closed 13 years ago
Looks good. Just a couple of quick questions:
CodeIndex
now has a member _extent
which is returned by the extent()
method as a Literal
. ElementIndex.extent()
however returns a Variable
, so I felt there wasn't too much in common anymore.
This requires changing the way
DimIndex
,BasisIndex
andGaussIndex
work:extent()
is now a method of theCodeIndex
base class and returns the_extent
attributeFormBackend
has 3 methodsbuildDimIndex
,buildBasisIndex
,buildGaussIndex
which return a corresponding index of the extent set from the corresponding attribute ofFormBackend
ElementIndex
(specific to the CUDA backend) does not derive fromCodeIndex
anymore.ExpressionBuilder
andQuadratureExpressionBuilder
now need to hold a handle to theFormBackend
so they can call thebuild*Index
methods. For the same reason this is also true for theOp2KernelParameterGenerator
.All induction variable methods have been removed and replaced by a call to the
name()
method of the correspondingIndex
.ExpressionBuilder
andQuadratureExpressionBuilder
classes have been moved toexpression.py
.