Help with shared arrays - code update

Try putting an @everywhere infront of these lines as well and move them below where you create the workers.
In general all workers need to load the code that they are going to run. I am wondering why you didn’t get an error though.

Note that in your example that works you have @everywhere infront of you Simulate function.

1 Like