Local Grid Refinement for Three-Dimensional Simulators