public static void Main(String[] args, ILog logger) { parseCmdLine(args, logger); Node.staticInitNode(); Cell.initCell(); if (nbody < 2) { logger.InfoFormat("Needs at least 2 bodies."); return; } if (printMsgs) { logger.InfoFormat("nbody = " + nbody); } BTree root = BTree.makeTreeX(); root.createTestData(nbody); if (printMsgs) { logger.InfoFormat("Bodies created"); } int i = 0; while (i < nsteps) { root.stepSystem(i++); } if (printResults) { int j = 0; while (j < root.bodyTab.Count) { Body b = root.bodyTab [j]; logger.InfoFormat("body " + j++ + " -- "); b.pos.printMathVector(logger); } } logger.InfoFormat("Done!"); }