# Distributed Simulations

**URL:** <https://discourse.julialang.org/t/distributed-simulations/49098>\
**Category:** General Usage\
**Created:** [October 27, 2020, 6:41am UTC](https://discourse.julialang.org/t/distributed-simulations/49098 "2020-10-27T06:41:36Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![josePereiro](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/josepereiro/32/17322_2.png) [@josePereiro](https://discourse.julialang.org/u/josePereiro)\
**Post date:** [November 2, 2020, 12:04pm UTC](https://discourse.julialang.org/t/distributed-simulations/49098/2 "2020-11-02T12:04:47Z")

</div>

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](https://discourse.julialang.org/t/psa-make-it-easier-to-help-you/14757)

---

_[View the full topic](https://discourse.julialang.org/t/distributed-simulations/49098)._
