Skip to content

Commit

Permalink
Add option --enable-petsc to use PETSc as bottom solver
Browse files Browse the repository at this point in the history
  • Loading branch information
chaw0023 committed Apr 19, 2019
1 parent f6d1352 commit b6dd1be
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions GNUmakefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,11 @@ ifeq ($(USE_HYPRE),TRUE)
Pdirs += Extern/HYPRE
endif
endif
ifeq ($(USE_PETSC),TRUE)
ifeq ($(USE_LINEAR_SOLVERS),TRUE)
Pdirs += Extern/PETSc
endif
endif
ifeq ($(USE_SENSEI_INSITU),TRUE)
Pdirs += Extern/SENSEI
endif
Expand Down
5 changes: 5 additions & 0 deletions Tools/libamrex/configure.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,10 @@ def configure(argv):
help="Enable Hypre as an option for bottom solver of AMReX linear solvers [default=no]",
choices=["yes","no"],
default="no")
parser.add_argument("--enable-petsc",
help="Enable PETSc as an option for bottom solver of AMReX linear solvers [default=no]",
choices=["yes","no"],
default="no")
parser.add_argument("--enable-eb",
help="Enable AMReX embedded boundary capability [default=no]",
choices=["yes","no"],
Expand Down Expand Up @@ -90,6 +94,7 @@ def configure(argv):
f.write("USE_FORTRAN_INTERFACE = {}\n".format("FALSE" if args.enable_fortran_api == "no" else "TRUE"))
f.write("USE_LINEAR_SOLVERS = {}\n".format("FALSE" if args.enable_linear_solver == "no" else "TRUE"))
f.write("USE_HYPRE = {}\n".format("TRUE" if args.enable_hypre == "yes" else "FALSE"))
f.write("USE_PETSC = {}\n".format("TRUE" if args.enable_petsc == "yes" else "FALSE"))
f.write("USE_EB = {}\n".format("TRUE" if args.enable_eb == "yes" else "FALSE"))
f.write("AMREX_XSDK = {}\n".format("TRUE" if args.enable_xsdk_defaults == "yes" else "FALSE"))
f.write("ALLOW_DIFFERENT_COMP = {}\n".format("FALSE" if args.allow_different_compiler == "no" else "TRUE"))
Expand Down

0 comments on commit b6dd1be

Please sign in to comment.