# - getProcDict (pyTree) - import Generator.PyTree as G import Distributor2.PyTree as D2 import Converter.PyTree as C import Connector.PyTree as X N = 11 t = C.newPyTree(['Base']) pos = 0 for i in range(N): a = G.cart((pos,0,0), (1,1,1), (10+i, 10, 10)) pos += 10 + i - 1 t[2][1][2].append(a) t = X.connectMatch(t) t, stats = D2.distribute(t, 3) proc = D2.getProcDict(t) zoneNames = C.getZoneNames(t, prefixByBase=False) for z in zoneNames: print(z, proc[z]) # - or with base prefix - proc = D2.getProcDict(t, prefixByBase=True) zoneNames = C.getZoneNames(t, prefixByBase=True) for z in zoneNames: print(z, proc[z])