val fragmentsInfo = new FragmentsInfo(consumer, transform, producer)
spaceFragmentsInfo += (space -> fragmentsInfo)
- val consumerIndices = getSortedIndices((for (op <- operands; index <- op.getIndices) yield index).toSet)
+ val consumerIndices = getSortedIndices((for (op <- operands; index <- op.getInternalIndices) yield index).toSet)
consumer match {
case Some(fragment) => base.addFragment(consumerIndices, fragment)
case None =>
def getDiscreteIndices = op.getDiscreteIndices
def getExternalIndices = Set()
- def getConsumerGenerator = None
+ def getConsumerGenerator = Some(new ConsumerGenerator {
+ def generate(names: NameManager, indices: Map[Index,String], values : Map[IterationSpace, String]) : String = {
+ "!SpatialRestriction consumer."
+ }
+ })
def getTransformGenerator = None
def getProducerGenerator = None
}