Skip to content

Commit

Permalink
add hypre to libamrex
Browse files Browse the repository at this point in the history
  • Loading branch information
WeiqunZhang committed Aug 14, 2018
1 parent 1cdf1f9 commit f14f51c
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
5 changes: 5 additions & 0 deletions GNUmakefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,11 @@ ifeq ($(USE_EB),TRUE)
DEFINES += -DAMREX_NO_DEPRECATED_EB
Pdirs += EB EB2
endif
ifeq ($(USE_HYPRE),TRUE)
ifeq ($(USE_LINEAR_SOLVERS),TRUE)
Pdirs += Extern/HYPRE
endif
endif
Ppack := $(foreach dir, $(Pdirs), $(AMREX_HOME)/Src/$(dir)/Make.package)
include $(Ppack)

Expand Down
8 changes: 8 additions & 0 deletions Tools/libamrex/configure.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,10 @@ def configure(argv):
help="Enable AMReX linear solvers [default=yes]",
choices=["yes","no"],
default="yes")
parser.add_argument("--enable-hypre",
help="Enable Hypre 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 @@ -89,6 +93,10 @@ def configure(argv):
f.write("USE_LINEAR_SOLVERS = FALSE\n")
else:
f.write("USE_LINEAR_SOLVERS = TRUE\n")
if args.enable_hypre == "yes":
f.write("USE_HYPRE = TRUE\n")
else:
f.write("USE_HYPRE = FALSE\n")
if args.enable_eb == "yes":
f.write("USE_EB = TRUE\n")
else:
Expand Down

0 comments on commit f14f51c

Please sign in to comment.