[gpaw-users] broadcasting H_skMM and S_skMM yields Typeerror

Alex Eftimiades alexeftimiades at gmail.com
Fri Nov 18 06:12:59 CET 2011


When I try to broadcast
ibz2d_k, weight2d_k, H, S = get_lead_lcao_hamiltonian(lead_copy.calc,
direction='z')
world.broadcast(H,0)

I get:
TypeError: Not a proper NumPy array for MPI communication.

I have checked all sorts of combinations of barriers, and I have tried
declaring the variables H and S at the top of the code, I have tried
checking that H and S are None for all other ranks (they are) I have tried
printing H and S for rank 0 (typical complex ndarray), I have tried
explicitly casting H and S into arrays both before and after setting them
equal to H_skMM and S_kMM respctively, and I have tried just broadcasting
the real parts of H and S.

Please tell me what I am doing wrong here.
Alex
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://listserv.fysik.dtu.dk/pipermail/gpaw-users/attachments/20111118/d7d027d0/attachment.html 


More information about the gpaw-users mailing list