val computeRanges = for (dim <- 1 to 2) yield {
val tb = parent.getTightbox(names)
- "call basis_lims_1d_in_ppd_in_tight("+startNames(dim)+", "+finishNames(dim)+", "+offsetNames(dim)+", &\n" +
- denseIndexNames(dim)+", "+tb+"%start_ppds2, "+tb+"%finish_ppds2, &\n" +
- tb+"%start_pts2, "+tb+"%finish_pts2, pub_cell%n_pt"+dim+")"
+ "call basis_lims_1d_in_ppd_in_tight("+startNames(dim)+", &\n"+finishNames(dim)+", &\n"+offsetNames(dim)+", &\n" +
+ denseIndexNames(dim)+", &\n"+tb+"%start_ppds2, &\n"+tb+"%finish_ppds2, &\n" +
+ tb+"%start_pts2, &\n"+tb+"%finish_pts2, pub_cell%n_pt"+dim+")"
}
val loopDeclaration = "do "+names(this)+"=1,"+parent.getSphere(names)+"%n_ppds_sphere"
finishNames = (for (dim <- 0 to 2) yield names.newIdentifier("tightbox_finish_"+dim)).toList
offsetNames = (for (dim <- 0 to 2) yield names.newIdentifier("tightbox_offset_"+dim)).toList
ppdPoint = names.newIdentifier("fa_point")
- (denseIndexNames++finishNames++offsetNames++Some(ppdPoint)).map(x => "integer :: " + x) ++ List("integer :: "+names(this))
+
+ val allDeclarations = denseIndexNames++startNames++finishNames++offsetNames++Some(ppdPoint)
+ allDeclarations.map(x => "integer :: " + x) ++ List("integer :: "+names(this))
}
}