Edited poissonsolve for r2