/// <summary>Run simulations in files specified by a file specification.</summary> /// <param name="fileName">The file specification</param> /// <param name="runTests">Run the test nodes?</param> /// <returns>The file of jobs that were run.</returns> public static RunOrganiser ForFile(string fileName, bool runTests) { if (!File.Exists(fileName)) { throw new Exception("Cannot find file: " + fileName); } Simulations simulations = Simulations.Read(fileName); return(ForSimulations(simulations, simulations, runTests)); }
/// <summary>Run simulations in files specified by a file specification.</summary> /// <param name="fileName">The file specification</param> /// <returns>The file of jobs that were run.</returns> public static JobManager.IRunnable ForFile(string fileName) { if (!File.Exists(fileName)) { throw new Exception("Cannot find file: " + fileName); } Simulations simulations = Simulations.Read(fileName); return(ForSimulations(simulations, simulations)); }