loops(0) += new AssignStatement(result, (result : Expression[FloatType]) +
leftDense.getBuffer.at(leftIndex: _*) *
- rightDense.getBuffer.at(rightIndex: _*))
+ rightDense.getBuffer.at(rightIndex: _*) *
+ (OnetepTypes.CellInfo.public % OnetepTypes.CellInfo.weight))
leftDense.teardown(context)
rightDense.teardown(context)
val numPPDs = {for (dim <- 1 to 3) yield new FieldSymbol[IntType]("n_ppds_a"+dim)}.toSeq
val pointsInPPD = new FieldSymbol[IntType]("n_pts")
val latticeReciprocal = for(dim <- 1 to 3) yield new FieldSymbol[StructType]("b"+dim, Point)
+ val weight = new FieldSymbol[FloatType]("weight")
def getFortranAttributes = Set("type(CELL_INFO)")
}