Skip to content

Commit

Permalink
JUQUEEN build settings, tweak NS encap.
Browse files Browse the repository at this point in the history
  • Loading branch information
memmett committed Oct 25, 2013
1 parent 28803a7 commit d96e124
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 9 deletions.
6 changes: 4 additions & 2 deletions examples/mpi-navier-stokes/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,10 @@ CSRC += src/numpy.c
CXXSRC += src/cfftw++.cpp src/fftw++.cpp src/convolution.cpp

FFLAGS += -I$(FFTW3)/include -fopenmp
LDFLAGS += -L$(FFTW3)/lib -lfftw3 -fopenmp -lstdc++
CFLAGS += -I$(FFTW3)/include -fopenmp
LDFLAGS += -L$(FFTW3)/lib -lfftw3 -fopenmp -lstdc++ -lfftw3_omp

vpath %.cpp $(VPATHS)

build/%.o: %.cpp
@mkdir -p build
Expand All @@ -24,7 +27,6 @@ build/%.o: %.cpp
all: $(EXE)

OBJ = $(subst src,build,$(FSRC:.f90=.o) $(CSRC:.c=.o) $(CXXSRC:.cpp=.o))
vpath %.cpp $(VPATHS)

include $(LIBPFASST)/Makefile.rules

Expand Down
6 changes: 0 additions & 6 deletions examples/mpi-navier-stokes/makefile.include

This file was deleted.

2 changes: 1 addition & 1 deletion examples/mpi-navier-stokes/src/encap.f90
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ end subroutine encap_pack
! Unpack solution from a flat array.
subroutine encap_unpack(solptr, q)
type(c_ptr), intent(in ), value :: solptr
real(pfdp), intent( out) :: q(:)
real(pfdp), intent(in ) :: q(:)

type(c_ptr) :: qptr
type(carray4), pointer :: sol
Expand Down
9 changes: 9 additions & 0 deletions mk/makefile.juqueen.defs
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#
# JUQUEEN build settings for libpfasst.
#

# need: module load gcc

FC = mpigfortran
CC = mpigcc

0 comments on commit d96e124

Please sign in to comment.