rendered paste bodyIndex: blacs.py===================================================================--- blacs.py (revision 5658)+++ blacs.py (working copy)@@ -42,9 +42,10 @@ dtype = H_mM.dtype # XXX where should inactive ranks be sorted out?- if not indescriptor:- shape = indescriptor.shape- H_mM = np.zeros(shape, dtype=dtype)+ # print indescriptor+ # if not indescriptor:+ # shape = indescriptor.shape+ # H_mM = np.zeros(shape, dtype=dtype) H_mm = blockdescriptor.zeros(dtype=dtype) C_mm = blockdescriptor.zeros(dtype=dtype)@@ -223,7 +224,7 @@ self.active = locM > 0 and locN > 0 # inactive descriptor can # exist on an active OR # inactive blacs grid- + print "foo", locM, locN, self.active self.bshape = (self.mb, self.nb) # Shape of one block self.gshape = (M, N) # Global shape of array @@ -234,6 +235,18 @@ self.lld], np.int32) return arr + def check(self, a_mn):+ print self.active+ return 1+ # + # if self.active:+ # MatrixDescriptor.check(self, a_mn)++ def checkassert(self, a_mn):+ return 1+ # if self.active:+ # MatrixDescriptor.checkassert(self, a_mn)+ def __str__(self): classname = self.__class__.__name__ template = '%s[context=%d, glob %s, block %s, lld %d, loc %s]'