~reducedmodelling/fluidity/ROM_Non-intrusive-ann

« back to all changes in this revision

Viewing changes to fldecomp/Makefile

  • Committer: fangf at ac
  • Date: 2012-11-06 12:21:31 UTC
  • mto: This revision was merged to the branch mainline in revision 3989.
  • Revision ID: fangf@imperial.ac.uk-20121106122131-u2zvt7fxc1r3zeou
updated

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#    Copyright (C) 2006 Imperial College London and others.
 
2
#
 
3
#    Please see the AUTHORS file in the main source directory for a full list
 
4
#    of copyright holders.
 
5
#
 
6
#    Prof. C Pain
 
7
#    Applied Modelling and Computation Group
 
8
#    Department of Earth Science and Engineering
 
9
#    Imperial College London
 
10
#
 
11
#    amcgsoftware@imperial.ac.uk
 
12
#
 
13
#    This library is free software; you can redistribute it and/or
 
14
#    modify it under the terms of the GNU Lesser General Public
 
15
#    License as published by the Free Software Foundation,
 
16
#    version 2.1 of the License.
 
17
#
 
18
#    This library is distributed in the hope that it will be useful,
 
19
#    but WITHOUT ANY WARRANTY; without even the implied warranty of
 
20
#    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 
21
#    Lesser General Public License for more details.
 
22
#
 
23
#    You should have received a copy of the GNU Lesser General Public
 
24
#    License along with this library; if not, write to the Free Software
 
25
#    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307
 
26
#    USA
 
27
SHELL = /bin/bash
 
28
 
 
29
FC      = mpif90
 
30
FCFLAGS = -I../include -fbounds-check -Wall -Wimplicit-interface -Wno-surprising -g -O0 -frecord-marker=4 -DHAVE_NUMPY -I/usr/lib/python2.7/dist-packages/numpy/core/include -ffree-line-length-none -ffixed-line-length-none -finit-integer=-66666 -finit-real=nan  -I/usr/lib/petscdir/3.1/linux-gnu-c-opt/include -I/usr/lib/petscdir/3.1/include -I/usr/include -I/usr/lib/openmpi/include -I/usr/lib/openmpi/lib -I/usr/include/spooles -I/usr/include/scotch -I/usr/lib -I/usr/include/suitesparse -fdefault-real-8 -fdefault-double-8
 
31
 
 
32
MPIF90  = mpif90
 
33
 
 
34
CC      = mpicc
 
35
CFLAGS  = -fbounds-check -Wall -g -O0 -I/usr/include/python2.7 -DHAVE_NUMPY -I/usr/lib/python2.7/dist-packages/numpy/core/include  -I../include
 
36
 
 
37
CXX     = mpicxx
 
38
CXXFLAGS= -fbounds-check -Wall -g -O0 -I/usr/include/python2.7 -DHAVE_NUMPY -I/usr/lib/python2.7/dist-packages/numpy/core/include  -I../include
 
39
 
 
40
MAKE    = make
 
41
AR  = ar
 
42
ARFLAGS = cr
 
43
 
 
44
LINKER  = mpicxx -rdynamic   
 
45
 
 
46
LIB_FLUIDITY = ../lib/libfluidity.a
 
47
LIBS    = -L../lib $(LIB_FLUIDITY)  -lblas  -L/usr/lib/gcc/x86_64-linux-gnu/4.6 -L/usr/lib/gcc/x86_64-linux-gnu/4.6/../../../x86_64-linux-gnu -L/usr/lib/gcc/x86_64-linux-gnu/4.6/../../../../lib -L/lib/x86_64-linux-gnu -L/lib/../lib -L/usr/lib/x86_64-linux-gnu -L/usr/lib/../lib -L/usr/lib/gcc/x86_64-linux-gnu/4.6/../../.. -lgfortran -lm -lquadmath  \
 
48
        ../lib/libadaptivity.a ../lib/libvtkfortran.a \
 
49
        ../lib/libspatialindex.a ../lib/libspud.a
 
50
 
 
51
OBJS = fldmain.o fldgmsh.o fldtriangle.o partition.o
 
52
 
 
53
FLDECOMP = ../bin/fldecomp
 
54
 
 
55
.SUFFIXES: .f90 .F90 .c .o .a
 
56
 
 
57
.f90.o:
 
58
        @echo "        FC $<"
 
59
        $(FC) $(FCFLAGS) -c $<
 
60
.F90.o:
 
61
        @echo "        FC $<"
 
62
        $(FC) $(FCFLAGS) -c $<
 
63
.cpp.o:
 
64
        @echo "        CXX $<"
 
65
        $(CXX) $(CXXFLAGS) -c $<
 
66
 
 
67
fldecomp: $(LIB) $(OBJS) 
 
68
        @$(EVAL) $(LINKER)  -o $(FLDECOMP) -I../include/ \
 
69
            $(OBJS) $(LIBS) -lmetis
 
70
 
 
71
clean:
 
72
        rm -f *.o *~