A code to meassure de gravitational potential in the LG