Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Petsc bottom solver in F_interface; update GNUmakefile #459

Merged
merged 3 commits into from
Apr 20, 2019
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Add option for using petsc as bottom solver
  • Loading branch information
chaw0023 committed Apr 19, 2019
commit 3225aca3baa1ef125a4c40f530061a551ab3cce2
2 changes: 2 additions & 0 deletions Src/F_Interfaces/LinearSolvers/AMReX_multigrid_fi.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,8 @@
mlmg->setBottomSolver(MLMG::BottomSolver::cg);
} else if (s == 3) {
mlmg->setBottomSolver(MLMG::BottomSolver::hypre);
} else if (s == 4) {
mlmg->setBottomSolver(MLMG::BottomSolver::petsc);
} else {
amrex::Abort("amrex_fi_multigrid_set_bottom_solver: unknown bottom solver");
}
Expand Down
1 change: 1 addition & 0 deletions Src/F_Interfaces/LinearSolvers/AMReX_multigrid_mod.F90
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ module amrex_multigrid_module
integer, parameter, public :: amrex_bottom_bicgstab = 1
integer, parameter, public :: amrex_bottom_cg = 2
integer, parameter, public :: amrex_bottom_hypre = 3
integer, parameter, public :: amrex_bottom_petsc = 4
integer, parameter, public :: amrex_bottom_default = 1

private
Expand Down