Repast / repast4py

Git repository for Repast for Python development
Other
51 stars 4 forks source link

Agents moving between distant ranks in a SharedGrid #54

Closed ncollier closed 4 weeks ago

ncollier commented 1 year ago

"It seems that I am experiencing synchronization issues with agents. I believe that in certain cases, the agents may not be able to successfully change their ranks as they are moving through the shared grid. I would guess that the issue might be related to situations where the areas controlled by origin and destination ranks are far from each other."

Check that each rank, given a point, can determine the rank associated with that point. Perhaps can only determine adjacencent ranks using the MPI Cartesian topology.

ncollier commented 1 year ago

When agent moves, agent only becomes out of bounds if enters neighbors local_bounds. Need to update this check to check everyone -- start with neighbors and then check other ranks.

See distributed_space.h: 214+

When creating DistributedCartesianSpace -- get all ranks local bounds via MPI, after local bounds and neighbors is computed?

ncollier commented 1 year ago

Now checks all rank local bounds after checking neighbors.