Example #1
0
 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));
     }
 }
 public SolverPCGMatrixInitialization(SolverPCG <T> solver)
 {
     this.solver = solver;
 }
 public SolverPCGMatrixCalculator(SolverPCG <T> solver)
 {
     this.solver = solver;
 }