Dimension is templated now in applyCoarse.