/[MITgcm]/MITgcm/optim/Makefile
ViewVC logotype

Contents of /MITgcm/optim/Makefile

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.7 - (show annotations) (download)
Tue Sep 30 20:00:00 2008 UTC (15 years, 6 months ago) by heimbach
Branch: MAIN
Changes since 1.6: +4 -0 lines
Add ifort options

1
2 #***********************************************************************
3 # Makefile for the ECCO off-line large scale optimization.
4 #
5 # started: Patrick Heimbach heimbach@mit.edu 19-Jun-2000
6 #
7 # changed:
8 #
9 #***********************************************************************
10
11 # The optimization routines.
12 SRC = optim_main.F \
13 optim_sub.F \
14 optim_numbmod.F \
15 optim_initmod.F \
16 optim_readdata.F \
17 optim_writedata.F \
18 optim_write_control.F \
19 xerbla.F \
20 simul.F
21
22 EXEDIR = ./
23
24 # Location of cpp preprocessor
25 # default is (Linux)
26 CPP = cat $< | /lib/cpp -P -traditional
27 # on SUNOS
28 # CPP = cat $< | /usr/ccs/lib/cpp
29
30 INCLUDEDIRS = -I. \
31 -I../verification/natl_box_adjoint/build/
32
33 LIBDIRS = -L. \
34 -L../lsopt/
35
36 LIBS = -llsopt_ecco \
37 -lblas1
38
39 # OPTMODE is either equal to OFFLINE or ONLINE
40 OPTMODE = OFFLINE
41 EXECUTABLE = $(EXEDIR)optim.x
42
43 # The cpp flags.
44 CPPFLAGS = -DREAL_BYTE=4 \
45 -DMAX_INDEPEND=1000000 \
46 -D_RL='double precision' \
47 -D$(OPTMODE)
48
49 # -DMAX_INDEPEND=293570968 \
50 # FORTRAN compiler and its flags.
51 # default is (Linux)
52 FC = f77
53
54 # ifort compilers
55 #FC = ifort
56 #FFLAGS = -mp -132 -r8 -i4 -w95 -W0 -WB -CB -fpe0 -traceback -convert big_endian -assume byterecl
57
58 # SGI o3k IRIX64
59 #FC = f77
60 #FFLAGS = -extend_source -bytereclen -mips4 -r8 -static
61
62 # AER cluster
63 #FC = /opt/mpich/bin/mpif77
64 #FFLAGS = -byteswapio -r8 -Mnodclchk -Mextend
65
66 # File removal.
67 RM = rm -f
68
69 SMALLF = $(SRC:.F=.f)
70 OBJECTS = $(SRC:.F=.o)
71
72 .SUFFIXES: .o .f .F
73
74 all: $(EXECUTABLE)
75 $(EXECUTABLE): $(OBJECTS)
76 $(FC) -o $@ $(FFLAGS) $(OBJECTS) $(LIBDIRS) $(LIBS)
77
78 depend:
79 makedepend -o .f $(INCLUDEDIRS) $(SRC)
80
81 # The normal chain of rules is ( .F - .f - .o )
82 .F.f:
83 $(CPP) $(CPPFLAGS) $(INCLUDEDIRS) > $@
84 xerbla.f: xerbla.F
85 $(CPP) $(INCLUDEDIRS) > $@
86 .f.o:
87 $(FC) $(FFLAGS) -c $<
88
89 # Cleaning options.
90 clean:
91 $(RM) $(EXEDIR)optim.x *.o *.f
92
93 scratch:
94 $(RM) OPWARMD OPWARMI $(EXEDIR)optim.x $(OBJ)
95
96 # DO NOT DELETE
97

  ViewVC Help
Powered by ViewVC 1.1.22