Skip to content

Instantly share code, notes, and snippets.

@zeapo
Created March 11, 2012 22:48
Show Gist options
  • Save zeapo/2018520 to your computer and use it in GitHub Desktop.
Save zeapo/2018520 to your computer and use it in GitHub Desktop.
Makefile.inc for MUMPS 4.10 from http://blog.egrounds.org/?p=757
UTILSDIR = /opt
SCOTCHDIR = $(UTILSDIR)/scotch_5.1.11_esmumps
ISCOTCH = -I$(SCOTCHDIR)/include
LSCOTCH = -L$(SCOTCHDIR)/lib -lesmumps -lscotch -lscotcherr
METISDIR = $(UTILSDIR)/ParMetis-3.1.1
IMETIS = -I$(METISDIR)/
LMETIS = -L$(METISDIR)/ -lparmetis -lmetis
ORDERINGSF = -Dmetis -Dparmetis -Dscotch
ORDERINGSC = $(ORDERINGSF)
LORDERINGS = $(LMETIS) $(LSCOTCH)
IORDERINGSF = $(ISCOTCH)
IORDERINGSC = $(IMETIS) $(ISCOTCH)
PLAT =
LIBEXT = .a
OUTC = -o
OUTF = -o
RM = /bin/rm -f
AR = ar vr
RANLIB = echo
CC = mpicc
FC = mpif90
FL = mpif90
DIRBLAS = /usr/lib/
DIRLAPACK = $(UTILSDIR)/lapack-3.4.0/
DIRBLACS = $(UTILSDIR)/BLACS/LIB/
DIRSCALAPACK = $(UTILSDIR)/scalapack-2.0.1/
SCALAPACKLIB = -L$(DIRSCALAPACK) -lscalapack
BLACSLIB = -L$(DIRBLACS) -lblacsf77 -lblacsc -lblacs -lblacsf77 -lblacsc -lgfortran
BLASLIB= -L$(DIRBLAS) -lblas
LAPACKLIB= -L$(DIRLAPACK) -llapack
MPILIB = -L/opt/mpich2/lib -lmpich
LIBPAR = $(LAPACKLIB) $(BLASLIB) $(SCALAPACKLIB) $(BLACSLIB) $(MPILIB) $(LIBMUMPS)
INCPAR = -I/usr/local/include
INCS = $(INCPAR)
LIBS = $(LIBPAR)
CDEFS = -DAdd_
OPTF = -O3 -DALLOW_NON_INIT
OPTL = -O3
OPTC = -O3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment