[Pympi-users] mpi.gather to concatenate local lists into a global list
Status: Alpha
Brought to you by:
patmiller
From: Julian C. <rjc...@cs...> - 2005-07-22 15:30:41
|
Pat Another question re something I can't seem to get right: If CancelArray is a local list (each of length 5 here), I would expect to be able to gather them onto the root using: >>> GCancelArray = mpi.gather(CancelArray) However I always get errors. I looked through the docs and can't see anything wrong. See below: tks again Julian Cook >>> mpi.synchronizedWrite(mpi.rank,CancelArray,"\n") 0 [-789.73324828817942, -464.6985882238028, 16.309153244928655, -266.37351222857797, 18.729736717962286] 1 [22.883099073570527, -13.504610959914903, -29.992427874816066, 66.603246745603798, 17.72761679717194] .. .. 8 [-447.53648850008159, -1918.500086573147, 17.697240048083117, -30.830132520298719, 19.180049636673306] 9 [-713.58277359050896, -15.962444427288318, -305.60046463383247, -207.9735194 3615666, -132.35710231581811] >>> GCancelArray = mpi.gather(CancelArray) Traceback (most recent call last): File "<stdin>", line 1, in ? EOFError >>> GCancelArray = mpi.gather([CancelArray]) Traceback (most recent call last): File "<stdin>", line 1, in ? EOFError |