Skip to content

Commit 63f111a

Browse files
committed
Switch to OpenBLAS in ff-petsc when Fortran is available
1 parent 9794df1 commit 63f111a

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

3rdparty/ff-petsc/Makefile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,11 @@ DARWIN=$(shell uname | grep Darwin 2> /dev/null)
3535

3636
W_SUDO:=$(SHELL mkdir -p "$(DESTDIR)$(FF_prefix_petsc)" && test -w "$(DESTDIR)$(FF_prefix_petsc) || echo sudo)
3737
ifeq ($(COMPILE_OPENBLAS),openblas)
38+
ifeq ($(FC),)
3839
PETSC_OPENBLAS := --download-f2cblaslapack
40+
else
41+
PETSC_OPENBLAS := --download-openblas
42+
endif
3943
PETSC_OPENBLAS_C := --with-blaslapack-dir=$(DIR_INSTALL_REAL)
4044
else
4145
PETSC_OPENBLAS = --with-blaslapack-include='$(shell echo $(BLASINC) | sed "s/-I//g")' \

0 commit comments

Comments
 (0)