Add inner loop over curvature; allow for better montoring and more
finely grained parallelism.