void GmresWrapper<Rank>::ApplyConfigSection(const ConfigSection &config) { config.Get("krylov_basis_size", Solver.BasisSize); if (config.HasValue("krylov_tolerance")) { config.Get("krylov_tolerance", Solver.Tolerance); } //Perform double orthogonalization step? if (config.HasValue("krylov_double_orthogonalization")) { bool performDoubleOrthogonalization; config.Get("krylov_double_orthogonalization", performDoubleOrthogonalization); cout << "Using doubleorth = " << performDoubleOrthogonalization << endl; Solver.PerformDoubleOrthogonalization = performDoubleOrthogonalization; } }
void CombinedRepresentation<Rank>::ApplyConfigSection(const ConfigSection &config) { //Do this manually for each sub-representation if (config.HasValue("innerproduct_algorithm")) { config.Get("innerproduct_algorithm", Algorithm); } }