added option for repeating boundaries to poisson solution calculation