Skip to content

Commit

Permalink
Hypre Default Params (#1984)
Browse files Browse the repository at this point in the history
This PR reverts the default values for bamg_relax_type back to 6 (Symmetric Gauss Seidel). This appears to be more robust than 11 (2 stage Gauss Seidel).
  • Loading branch information
PaulMullowney authored Apr 30, 2021
1 parent fe2830d commit 8e8b3d7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Src/Extern/HYPRE/AMReX_HypreIJIface.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ void HypreIJIface::boomeramg_precond_configure(const std::string& prefix)
hpp("bamg_up_relax_type", HYPRE_BoomerAMGSetCycleRelaxType, 11, 2);
hpp("bamg_coarse_relax_type", HYPRE_BoomerAMGSetCycleRelaxType, 11, 3);
} else {
hpp("bamg_relax_type", HYPRE_BoomerAMGSetRelaxType, 11);
hpp("bamg_relax_type", HYPRE_BoomerAMGSetRelaxType, 6);
}

if (hpp.pp.contains("bamg_num_down_sweeps") && hpp.pp.contains("bamg_num_up_sweeps") && hpp.pp.contains("bamg_num_coarse_sweeps")) {
Expand Down Expand Up @@ -362,7 +362,7 @@ void HypreIJIface::boomeramg_solver_configure(const std::string& prefix)
hpp("bamg_up_relax_type", HYPRE_BoomerAMGSetCycleRelaxType, 11, 2);
hpp("bamg_coarse_relax_type", HYPRE_BoomerAMGSetCycleRelaxType, 11, 3);
} else {
hpp("bamg_relax_type", HYPRE_BoomerAMGSetRelaxType, 11);
hpp("bamg_relax_type", HYPRE_BoomerAMGSetRelaxType, 6);
}

if (hpp.pp.contains("bamg_num_down_sweeps") && hpp.pp.contains("bamg_num_up_sweeps") && hpp.pp.contains("bamg_num_coarse_sweeps")) {
Expand Down

0 comments on commit 8e8b3d7

Please sign in to comment.