1#
2#  This file is part of MUMPS 4.10.0, built on Tue May 10 12:56:32 UTC 2011
3#
4#Begin orderings
5
6# NOTE that PORD is distributed within MUMPS by default. If you would like to
7# use other orderings, you need to obtain the corresponding package and modify
8# the variables below accordingly.
9# For example, to have Metis available within MUMPS:
10#          1/ download Metis and compile it
11#          2/ uncomment (suppress # in first column) lines
12#             starting with LMETISDIR,  LMETIS
13#          3/ add -Dmetis in line ORDERINGSF
14#             ORDERINGSF  = -Dpord -Dmetis
15#          4/ Compile and install MUMPS
16#             make clean; make   (to clean up previous installation)
17#
18#          Metis/ParMetis and SCOTCH/PT-SCOTCH (ver 5.1 and later) orderings are now available for MUMPS.
19#
20
21#SCOTCHDIR  = ${HOME}/scotch_5.1_esmumps
22#ISCOTCH    = -I$(SCOTCHDIR)/include
23# You have to choose one among the following two lines depending on
24# the type of analysis you want to perform. If you want to perform only
25# sequential analysis choose the first (remember to add -Dscotch in the ORDERINGSF
26# variable below); for both parallel and sequential analysis choose the second
27# line (remember to add -Dptscotch in the ORDERINGSF variable below)
28
29#LSCOTCH    = -L$(SCOTCHDIR)/lib -lesmumps -lscotch -lscotcherr
30#LSCOTCH    = -L$(SCOTCHDIR)/lib -lptesmumps -lptscotch -lptscotcherr
31
32
33LPORDDIR = $(topdir)/PORD/lib/
34IPORD    = -I$(topdir)/PORD/include/
35LPORD    = -L$(LPORDDIR) -lpord
36
37#LMETISDIR = /local/metis/
38#IMETIS    = # Should be provided if you use parmetis
39
40# You have to choose one among the following two lines depending on
41# the type of analysis you want to perform. If you want to perform only
42# sequential analysis choose the first (remember to add -Dmetis in the ORDERINGSF
43# variable below); for both parallel and sequential analysis choose the second
44# line (remember to add -Dparmetis in the ORDERINGSF variable below)
45
46#LMETIS    = -L$(LMETISDIR) -lmetis
47#LMETIS    = -L$(LMETISDIR) -lparmetis -lmetis
48
49# The following variables will be used in the compilation process.
50# Please note that -Dptscotch and -Dparmetis imply -Dscotch and -Dmetis respectively.
51#ORDERINGSF = -Dscotch -Dmetis -Dpord -Dptscotch -Dparmetis
52ORDERINGSF  = -Dpord
53ORDERINGSC  = $(ORDERINGSF)
54
55LORDERINGS = $(LMETIS) $(LPORD) $(LSCOTCH)
56IORDERINGSF = $(ISCOTCH)
57IORDERINGSC = $(IMETIS) $(IPORD) $(ISCOTCH)
58
59#End orderings
60########################################################################
61################################################################################
62PLAT    =
63LIBEXT  = .a
64OUTC    = -o
65OUTF    = -o
66RM      = /bin/rm -f
67CC      = sxcc
68FC = sxmpif90
69FL = sxmpif90
70AR = sxar vr
71RANLIB  = echo
72
73#
74# Use module load scalapack, module load blas, etc.
75#
76#SCALAP  = -lscalapack -lblacs -lblacsCinit -lblacsF90init
77#INCPAR = -I/usr/lib
78#LIBPAR = $(SCALAP)  -L/usr/lib -lmpi -lmpi++
79
80INCSEQ = -I$(topdir)/libseq
81LIBSEQ  =  -L$(topdir)/libseq -lmpiseq
82
83# LIBBLAS = -lcblas -lblas
84LIBOTHERS = -lpthread
85
86#Preprocessor defs for calling Fortran from C (-DAdd_ or -DAdd__ or -DUPPER)
87CDEFS   = -DAdd_
88
89#Begin Optimization options
90OPTF   = -DALLOW_NON_INIT
91OPTL   =
92OPTC   = -Kc99 -O  -I
93#End Optimization options
94
95INCS = $(INCPAR)
96LIBS = $(LIBPAR)
97LIBSEQNEEDED =
98