private void MarkFilesForDelete(
            Dictionary <string, string> nameValuePairs
            )
        {
            string dataPathFile     = YburnConfigFile.OutputPath + nameValuePairs["DataFileName"];
            string dataPlotPathFile = dataPathFile + ".plt";

            FileCleaner.MarkForDelete(dataPathFile);
            FileCleaner.MarkForDelete(dataPlotPathFile);
        }
Esempio n. 2
0
 private void WriteTestParaFile(
     Dictionary <string, string> paramList
     )
 {
     File.WriteAllText(TestParameterFileName, GetStringContent(paramList));
     FileCleaner.MarkForDelete(TestParameterFileName);
 }
Esempio n. 3
0
        private static void MakePlotFile(
            double[] positions,
            Complex[] values,
            ComplexFunction analyticValues
            )
        {
            StringBuilder builder = new StringBuilder();

            for (int i = 0; i < positions.Length; i++)
            {
                builder.AppendFormat("{0,-22}{1,-22}{2,-22}" + Environment.NewLine,
                                     positions[i].ToString(),
                                     values[i].Re.ToString(),
                                     analyticValues(positions[i]).Re.ToString());
            }

            string pathFile = "RseSolverHydroTest.txt";

            File.WriteAllText(pathFile, builder.ToString());
            FileCleaner.MarkForDelete(pathFile);
        }