return gridFactory.create();
}
private ParticleBoundaries createParticleBoundaries(SharedDataManager sharedDataManager) {
DoubleBox simulationAreaInParticleDimensions = new DoubleBox(
0, localSettings.getSimulationWidth(), 0, localSettings.getSimulationHeight());
DoubleBox innerSimulationArea = new DoubleBox(
0, localSettings.getSimulationWidth() - localSettings.getCellWidth(),
0, localSettings.getSimulationHeight() - localSettings.getCellHeight());
return new DistributedParticleBoundaries(
simulationAreaInParticleDimensions, innerSimulationArea,
localSettings.getParticleBoundary(), sharedDataManager);