Exemple #1
0
 private IndraFOFProcess RefreshSimDBFOFsProcess()
 {
     IndraFOFProcess process = new IndraFOFProcess(globalParameters);
     process.inPath = FoFSimDBsrcpath.Text;
     process.outPath = FoFSimDBdstpath.Text;
     process.groupTabFilePrefix = groupTabPrefix.Text;
     process.groupIDFilePrefix = FofSimDBgroupprefix.Text;
     process.firstSnapshotFile = Int32.Parse(FoFSimDBfirstfile.Text);
     process.lastSnapshotFile = Int32.Parse(FoFSimDBlastfile.Text);
     process.firstSnap = Int16.Parse(FoFSimDBfirstsnap.Text);
     process.lastSnap = Int16.Parse(FoFSimDBlastsnap.Text);
     return process;
 }
Exemple #2
0
 /// <summary>
 /// Creates a new IndraFofProcess to process the FoF files generated by Gadget
 /// </summary>
 /// <param name="gp">The global parameters</param>
 /// <param name="inpath">Where the fof files are located on disk</param>
 /// <param name="outpath">Where the processed files should be written to before
 /// being bulk loaded into the database</param>
 /// <param name="opts">The command line options</param>
 /// <returns>A new IndraFoFProcess ready to be executed</returns>
 private static IndraFOFProcess RefreshIndraFOFProcess(GlobalParameters gp, string inpath, string outpath, CommandLineOptions opts)
 {
     IndraFOFProcess process = new IndraFOFProcess(gp);
     process.inPath = inpath;
     process.outPath = outpath;
     process.groupTabFilePrefix = LoaderParamSingleton.getInstance().groupTabPrefix;
     process.groupIDFilePrefix = LoaderParamSingleton.getInstance().groupIDPrefix;
     //process.firstSnapshotFile = LoaderParamSingleton.getInstance().fofFirstSnapshot;
     //process.lastSnapshotFile = LoaderParamSingleton.getInstance().fofLastSnapshot;
     process.snapnumber = opts.timestep;
     return process;
 }