// Initialize the grid
initialGrid = new Grid(settings);
initialParticles = settings.getParticles();
ParticleGridInitializer pgi = new ParticleGridInitializer();
pgi.initialize(
new LocalInterpolation(
settings.getInterpolator(), settings.getParticleIterator()),
settings.getPoissonSolver(),
initialParticles,
initialGrid);