Hi all,
I am able to compile and run the mpi and the smp version of Exciting/Boron.
I however can't compile the combined mpiandsmp version and get the following error for each .f90 file:
cpp -DXS -DISO -DTETRA -DLIBXC -Ifinclude -c ../../src/libbzint/edifwt.f90
cpp: "-c" is not a valid option to the preprocessor
Here is my make.inc file
F90 = gfortran
F77 = $(F90)
F90_OPTS = -O3 -march=native -fopenmp -DUSEOMP -ffree-line-length-0
F77_OPTS = $(F90_OPTS)
CPP_ON_OPT = -cpp -DXS -DISO -DTETRA -DLIBXC
LIB_ARP = libarpack.a
- uncomment this line in case you want to use external LAPACK/BLAS library
#export USE_SYS_LAPACK=true
LIB_LPK = -L./ -llapack -lblas
LIB_FFT = fftlib.a
LIB_BZINT = libbzint.a
LIBS = $(LIB_ARP) $(LIB_LPK) $(LIB_FFT) $(LIB_BZINT) -L/usr/lib/gcc/x86_64-redhat-linux/4.4.6/ -lgomp
F90_DEBUGOPTS = -g -fbounds-check -fbacktrace -Wall
F77_DEBUGOPTS = $(F90_DEBUGOPTS)
#Ignore if you don't have MPI or smplibs
MPIF90 = mpif90
MPIF90_OPTS = $(F90_OPTS) $(CPP_ON_OPT) -DMPI -DMPIRHO -DMPISEC
F77MT = $(F77)
F90MT = $(F90)
SMP_LIBS = $(LIBS)
SMPF90_OPTS = -fopenmp $(F90_OPTS)
SMPF77_OPTS = $(SMPF90_OPTS)
BUILDMPI=true
BUILDSMP=true
Has anyone any idea of what's wrong?
Thanks
Ludovic