An AMR-Multigrid algorithm for gravity fields