Closed nightkeo closed 5 years ago
The ifort compiler is in general way faster and free for personal use, look for example here. If you want to use gfortran, you can use src/make.inc/Makefile.archlinux
as base. Please find the wrapper you need to call to compile with mpi, usually mpifort
. Then, put in src/Makefile.inc
for example:
QUALIKIZ=/path/to/qualikiz/root
# Underlying compiler
FC=gfortran
# Wrapper/command used to compile with Open MPI
FC_WRAPPER=mpifort
# String of text that will be put in from of the $(FC) compile option
FC_PREAMBLE=export OMPI_FC=$(FC) &&
DEBUG=
FFLAGS_GFORTRAN=$(DEBUG) -O3 -fdefault-double-8 -fdefault-real-8 -ffree-line-length-none
FFLAGS_IFORT=$(DEBUG) -O2 -real-size 64
FFLAGS=$(FFLAGS_GFORTRAN)
OPENMP_FLAGS=-fopenmp
MPI_FLAGS=-DMPI
Let me know if this works for you.
Closing this issue as stale. There are enough examples in src/make.inc/
to base new machine scripts on.
How to compile a program on ubuntu with gfortran and gc++? Can you post a makefile? Thank you!