Stepping Stone model - Torus #2259
JaneeshBansal
started this conversation in
General
Replies: 1 comment 5 replies
-
Hi @JaneeshBansal 👋 The "mod" conditions here usually used to implement the "wraparound" that you get for a torus. So, if we were at the rightmost k = m - 1, then the next deme = (k + 1) % m is 0. Printing out the migration matrix for a small (say 3x3) example would probably help? |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I am trying to model a stepping stone model in a torus shape. I saw #2100 issue where a 2D stepping stone model was discussed but I am confused about how to add boundary conditions.
I tried to add in boundary conditions below but I don't think they are correct. I don't undestand parts of the script - why is the remainder being taken in this part
right = (index + 1) % N
?Thank you :)
Janeesh
Beta Was this translation helpful? Give feedback.
All reactions