blob: 09cfff3af489ab22d293cd4cb1eea687f79169c6 [file] [log] [blame]
avm9996345a8a462022-06-04 12:41:03 +02001integer*4 function PBC(N, L)
2 integer*4, intent(in) :: N, L
3 if (N == 0) then
4 PBC = L
5 else if (N == L + 1) then
6 PBC = 1
7 else
8 PBC = N
9 endif
10 return
11endfunction