Distributed Simulations

I don’t know what the algorithm should do, but I see a few stuff that appears to be wrong in the @sync begin block. First, I think this block is only running in the master worker, you should use Distributed pmap, @spawn, etc to make the other workers actually work. Second, I think you are no using properly localindices and localpart, those are functions and you are trying to index it. Also diagon, if is intended to be part of the distributed part of the algorithm, must be defined @everywhere. Sorry I can’t help you in more detail, maybe if you isolate the independent issues unrelated of the real specific case, i can do more.
See PSA: make it easier to help you

1 Like