if (settings.getSimulationType() == 0) {
// Creates the actual physics simulation that can be run iteratively.
simulation = new Simulation(settings);
// Creates the diagnostics wrapper class that knows about all
// enabled diagnostic methods.
diagnostics = new DiagnosticsScheduler(simulation.grid, simulation.particles, settings);
// Checks if the user has specified at least two parameters
// If this is not the case, the diagnostics output is disabled
// the program will not output anything.
if (args.length < 2) {