periodic boundary conditions in a lattice using arrays

Hi

I need to implement a laticce of, say lxl. I whant to do that using arrays. But I need that lattice have periodic boundary conditions along all code.

how do I do that?

Thanks in advance

Soyuz
Topic archived. No new replies allowed.