debug phi+marching squares