Skip to content

Commit

Permalink
fix python_wrapper compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathanschilling committed Feb 16, 2022
1 parent f6a3de3 commit 2d06bfe
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 9 deletions.
8 changes: 0 additions & 8 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,6 @@ DOBJS_IO=$(IOFILES:=_d.o)

###############################################################################################################################################################

ifeq ($(OMP),yes)
RFLAGS+=-DOPENMP -fopenmp
DFLAGS+=-DOPENMP -fopenmp
LINKS+=-lgomp
endif

###############################################################################################################################################################

date:=$(shell date)
text:=$(shell date +%F)

Expand Down
5 changes: 5 additions & 0 deletions SPECfile
Original file line number Diff line number Diff line change
Expand Up @@ -277,3 +277,8 @@ ifeq ($(BUILD_ENV),intel_stellar)

endif

ifeq ($(OMP),yes)
RFLAGS+=-DOPENMP -fopenmp
DFLAGS+=-DOPENMP -fopenmp
LINKS+=-lgomp
endif
2 changes: 1 addition & 1 deletion Utilities/python_wrapper/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ $(LIB_NAME):
_${PYTHON_MODN}.so: $(LIB_NAME) ${LIBSRC_WRAP_FPP_FILES}
f90wrap -m ${PYTHON_MODN} ${LIBSRC_WRAP_FPP_FILES} -k ${KIND_MAP} -v
mv ${PYTHON_MODN}.py spec/
f2py-f90wrap --f90exec=${FC} --build-dir . ${LINKS} -L. -l$(PYTHON_MODN) -I${SOURCES} ${LIBS} $(LINKS) -c f90wrap_*.f90 -m _${PYTHON_MODN}
f2py-f90wrap --f90exec=${FC} --fcompiler=gnu95 --build-dir . ${LINKS} -L. -l$(PYTHON_MODN) -I${SOURCES} ${LIBS} $(LINKS) -c f90wrap_*.f90 -m _${PYTHON_MODN}
mv _${PYTHON_MODN}*.so spec/

compile_test:
Expand Down

0 comments on commit 2d06bfe

Please sign in to comment.