info specific to winisk and kazan

From Fluids Wiki
Revision as of 11:28, 27 October 2011 by Fluidslab (talk | contribs) (Created page with 'Here is a sample makefile for use at winisk/kazan. It uses Intel's FORTRAN compiler and links with NetCDF, FFTW3 and the Intel MKL. <syntaxhighlight lang="make"> SRC = file1.…')
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Here is a sample makefile for use at winisk/kazan. It uses Intel's FORTRAN compiler and links with NetCDF, FFTW3 and the Intel MKL.

SRC    = file1.f90 file2.f90 ...

OBJ     = $(SRC:.f90=.o)

FC     = ifort
INCLUDE = -I/usr/local/netcdf/include
FFLAGSR = -O3
FFLAGS = -check bounds -g -debug all -warn all
MATH   = -lm
FFT    = -lfftw3 -Wl,--start-group $(MKLPATH)/libmkl_intel_lp64.a $(MKLPATH)/libmkl_sequential.a $(MKLPATH)/libmkl_core.a -Wl,--end-group -lm
NETCDF = -L/usr/local/netcdf/lib -lnetcdf

all: job_name

%.o: %.f90
        $(FC) $(FFLAGS) -c $<

job_name: $(OBJ)
        $(FC) $(INCLUDE) $(FFLAGS) -o job.out $(OBJ) $(MATH) $(FFT) $(NETCDF)

clean :
        \rm *.o *.mod *~ *.out