int shp [3] = {2, 2, 2} ; Procs p(3, shp) ; DimensionSet ds ; ds += p.dim(0) ; ds += p.dim(2) ;
Create a process array p representing a 3 dimensional binary hypercube. Create ds as an empty dimension set, then add the first and third dimension of p to it.