/[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.10 - (show annotations) (download)
Tue Feb 5 13:18:02 2013 UTC (7 years, 3 months ago) by heimbach
Branch: MAIN
CVS Tags: checkpoint65z, checkpoint65x, checkpoint65y, checkpoint65r, checkpoint65s, checkpoint65p, checkpoint65q, checkpoint65v, checkpoint65w, checkpoint65t, checkpoint65u, checkpoint65j, checkpoint65k, checkpoint65h, checkpoint65i, checkpoint65n, checkpoint65l, checkpoint65m, checkpoint65b, checkpoint65c, checkpoint65a, checkpoint65f, checkpoint65g, checkpoint65d, checkpoint65e, checkpoint65, checkpoint66g, checkpoint66f, checkpoint66e, checkpoint66d, checkpoint66c, checkpoint66b, checkpoint66a, checkpoint66o, checkpoint66n, checkpoint66m, checkpoint66l, checkpoint66k, checkpoint66j, checkpoint66i, checkpoint66h, checkpoint65o, checkpoint64y, checkpoint64x, checkpoint64z, checkpoint64q, checkpoint64p, checkpoint64s, checkpoint64r, checkpoint64u, checkpoint64t, checkpoint64w, checkpoint64v, checkpoint64i, checkpoint64h, checkpoint64k, checkpoint64j, checkpoint64m, checkpoint64l, checkpoint64o, checkpoint64n, checkpoint64e, checkpoint64d, checkpoint64g, checkpoint64f, HEAD
Changes since 1.9: +1 -0 lines
Add -D_d='D' to CPPFLAGS

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_RS='double precision' \
48 -D_d='D' \
49 -D$(OPTMODE)
50
51 # -DMAX_INDEPEND=293570968 \
52 # FORTRAN compiler and its flags.
53 # default is (Linux)
54 FC = f77
55
56 # ifort compilers
57 #FC = ifort
58 #FFLAGS = -mp -132 -r8 -i4 -w95 -W0 -WB -CB -fpe0 -traceback -convert big_endian -assume byterecl
59
60 # SGI o3k IRIX64
61 #FC = f77
62 #FFLAGS = -extend_source -bytereclen -mips4 -r8 -static
63
64 # AER cluster
65 #FC = /opt/mpich/bin/mpif77
66 #FFLAGS = -byteswapio -r8 -Mnodclchk -Mextend
67
68 # File removal.
69 RM = rm -f
70
71 SMALLF = $(SRC:.F=.f)
72 OBJECTS = $(SRC:.F=.o)
73
74 .SUFFIXES: .o .f .F
75
76 all: small_f $(EXECUTABLE)
77 $(EXECUTABLE): $(OBJECTS)
78 $(FC) -o $@ $(FFLAGS) $(OBJECTS) $(LIBDIRS) $(LIBS)
79
80 small_f: $(SMALLF)
81
82 depend:
83 makedepend -o .f $(INCLUDEDIRS) $(SRC)
84
85 # The normal chain of rules is ( .F - .f - .o )
86 .F.f:
87 $(CPP) $(CPPFLAGS) $(INCLUDEDIRS) > $@
88 xerbla.f: xerbla.F
89 $(CPP) $(INCLUDEDIRS) > $@
90 .f.o:
91 $(FC) $(FFLAGS) -c $<
92
93 # Cleaning options.
94 clean:
95 $(RM) $(EXEDIR)optim.x *.o *.f
96
97 scratch:
98 $(RM) OPWARMD OPWARMI $(EXEDIR)optim.x $(OBJ)
99
100 # DO NOT DELETE
101

  ViewVC Help
Powered by ViewVC 1.1.22