Lines Matching refs:std

59   static const std::map<std::string, AmgXAMGMethod>    AMGMethods;
60 static const std::map<std::string, AmgXSmoother> Smoothers;
61 static const std::map<std::string, AmgXSelector> Selectors;
62 static const std::map<std::string, AmgXCoarseSolver> CoarseSolvers;
63 static const std::map<std::string, AmgXAMGCycle> AMGCycles;
66 const std::map<std::string, AmgXAMGMethod> AmgXControlMap::AMGMethods = {
71 const std::map<std::string, AmgXSmoother> AmgXControlMap::Smoothers = {
87 const std::map<std::string, AmgXSelector> AmgXControlMap::Selectors = {
96 const std::map<std::string, AmgXCoarseSolver> AmgXControlMap::CoarseSolvers = {
101 const std::map<std::string, AmgXAMGCycle> AmgXControlMap::AMGCycles = {
130 std::string cfg_contents;
164 static std::string amgx_output{};
267 …PetscCheck(amgx->nLocalRows < std::numeric_limits<int>::max(), PETSC_COMM_SELF, PETSC_ERR_PLIB, "A… in PCSetUp_AMGX()
275 …PetscCheck(amgx->nnz < std::numeric_limits<int>::max(), PETSC_COMM_SELF, PETSC_ERR_PLIB, "Support … in PCSetUp_AMGX()
278 std::vector<PetscInt> partitionOffsets(amgx->nranks + 1); in PCSetUp_AMGX()
283 std::partial_sum(partitionOffsets.begin(), partitionOffsets.end(), partitionOffsets.begin()); in PCSetUp_AMGX()
419 std::string map_reverse_lookup(const std::map<std::string, T> &map, const T &key) in map_reverse_lookup()
445 std::string def_amg_method = map_reverse_lookup(AmgXControlMap::AMGMethods, amgx->amg_method); in PCSetFromOptions_AMGX()
450 amgx->cfg_contents += "amg:algorithm=" + std::string(option) + ","; in PCSetFromOptions_AMGX()
453 std::string def_amg_cycle = map_reverse_lookup(AmgXControlMap::AMGCycles, amgx->amg_cycle); in PCSetFromOptions_AMGX()
458 amgx->cfg_contents += "amg:cycle=" + std::string(option) + ","; in PCSetFromOptions_AMGX()
461 std::string def_smoother = map_reverse_lookup(AmgXControlMap::Smoothers, amgx->smoother); in PCSetFromOptions_AMGX()
466 amgx->cfg_contents += "amg:smoother(smooth)=" + std::string(option) + ","; in PCSetFromOptions_AMGX()
470 …amgx->cfg_contents += "smooth:relaxation_factor=" + std::to_string(amgx->jacobi_relaxation_factor)… in PCSetFromOptions_AMGX()
473 amgx->cfg_contents += "smooth:symmetric_GS=" + std::to_string(amgx->gs_symmetric) + ","; in PCSetFromOptions_AMGX()
477 std::string def_selector = map_reverse_lookup(AmgXControlMap::Selectors, amgx->selector); in PCSetFromOptions_AMGX()
490 amgx->cfg_contents += "amg:selector=" + std::string(option) + ","; in PCSetFromOptions_AMGX()
494 amgx->cfg_contents += "amg:presweeps=" + std::to_string(amgx->presweeps) + ","; in PCSetFromOptions_AMGX()
498 amgx->cfg_contents += "amg:postsweeps=" + std::to_string(amgx->postsweeps) + ","; in PCSetFromOptions_AMGX()
502 amgx->cfg_contents += "amg:max_levels=" + std::to_string(amgx->max_levels) + ","; in PCSetFromOptions_AMGX()
506 amgx->cfg_contents += "amg:dense_lu_num_rows=" + std::to_string(amgx->dense_lu_num_rows) + ","; in PCSetFromOptions_AMGX()
510 amgx->cfg_contents += "amg:strength_threshold=" + std::to_string(amgx->strength_threshold) + ","; in PCSetFromOptions_AMGX()
514 …if (amgx->aggressive_levels > 0) amgx->cfg_contents += "amg:aggressive_levels=" + std::to_string(a… in PCSetFromOptions_AMGX()
517std::string def_coarse_solver = map_reverse_lookup(AmgXControlMap::CoarseSolvers, amgx->coarse_sol… in PCSetFromOptions_AMGX()
522 amgx->cfg_contents += "amg:coarse_solver=" + std::string(option) + ","; in PCSetFromOptions_AMGX()
547 std::string output_cfg(amgx->cfg_contents); in PCView_AMGX()
548 std::replace(output_cfg.begin(), output_cfg.end(), ',', '\n'); in PCView_AMGX()