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################################################################################
62
63PLAT =
64LIBEXT  = .a
65OUTC    = -o
66OUTF    = -o
67RM      = /bin/rm -f
68CC      = gcc
69FC = g95
70FL = g95
71AR = ar vr
72RANLIB  = echo
73
74SCALAP  = /usr/local/SCALAPACK/libscalapack.a /usr/local/BLACS/LIB/blacsCinit_MPI-LINUX-0.a /usr/local/BLACS/LIB/blacsF77init_MPI-LINUX-0.a /usr/local/BLACS/LIB/blacs_MPI-LINUX-0.a
75INCPAR = -I/usr/local/mpich-1.2.7p1/include
76LIBPAR = $(SCALAP)  -L/usr/local/mpich-1.2.7p1/lib -lfmpich -lmpich
77
78INCSEQ = -I$(topdir)/libseq
79LIBSEQ  =  -L$(topdir)/libseq -lmpiseq
80
81#LIBBLAS = /usr/local/lib/libgoto_coppermine32p-r1.00.so
82LIBBLAS =/usr/local/ATLAS/lib/Linux_P4SSE2/libf77blas.a  /usr/local/ATLAS/lib/Linux_P4SSE2/libatlas.a -lg2c
83LIBOTHERS = -lpthread
84
85#Preprocessor defs for calling Fortran from C (-DAdd_ or -DAdd__ or -DUPPER)
86CDEFS   = -DAdd__
87
88#Begin Optimization options
89OPTF   = -O -i4
90OPTL   = -O
91OPTC   = -O -DMAIN_COMP
92#End Optimization options
93
94INCS = $(INCPAR)
95LIBS = $(LIBPAR)
96LIBSEQNEEDED =
97