public SolverPCG(ISolverPCGMatrixCalculator matrixCalculator, ISearchVectorCalculator search) { this.matrixCalculator = matrixCalculator; this.search = search; StreamWriter sw = File.CreateText(String.Format(@"iterationsPCG-{0}.txt", Process.GetCurrentProcess().Id)); sw.Close(); }
public SolverPCG(Model model, ISearchVectorCalculator searchVectorCalculator) { this.model = model; this.matrixCalculator = new SolverPCGMatrixCalculator <T>(this); this.matrixInitialization = new SolverPCGMatrixInitialization <T>(this); this.searchVectorCalculator = searchVectorCalculator; solverPCG = new SolverPCG(matrixCalculator, searchVectorCalculator); subdomainsDictionary = new Dictionary <int, ISolverSubdomain>(model.SubdomainsDictionary.Count); foreach (Subdomain subdomain in model.SubdomainsDictionary.Values) { subdomainsDictionary.Add(subdomain.ID, new SubdomainSkyline(subdomain)); } }
private void Initialize(Model model, ISearchVectorCalculator searchVectorCalculator, ISolverPCGMatrixCalculator matrixCalculator) { }