diff --git a/code/Makefile b/code/Makefile index 9ebf5a6d1..90e9d61eb 100644 --- a/code/Makefile +++ b/code/Makefile @@ -17,7 +17,7 @@ SHELL = /bin/sh # STANDARD_CHECK = checking for Fortran 2008, compiler dependend ######################################################################################## -include $(PETSC_DIR)/lib/petsc/conf/variables +include $(PETSC_DIR)/$(PETSC_ARCH)/lib/petsc/conf/variables INCLUDE_DIRS := $(PETSC_FC_INCLUDES) -DPETSc -I../lib LIBRARIES := $(PETSC_WITH_EXTERNAL_LIB) COMPILERNAME ?= $(FC) diff --git a/examples/SpectralMethod/Makefile b/examples/SpectralMethod/Makefile index 58df90a64..6472b5900 100644 --- a/examples/SpectralMethod/Makefile +++ b/examples/SpectralMethod/Makefile @@ -1,6 +1,6 @@ -include ${PETSC_DIR}/lib/petsc/conf/variables -include ${PETSC_DIR}/lib/petsc/conf/rules +include ${PETSC_DIR}/${PETSC_ARCH}/lib/petsc/conf/variables +include ${PETSC_DIR}/${PETSC_ARCH}/lib/petsc/conf/rules run16x16x16: