/[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.6 - (show annotations) (download)
Thu Jul 20 00:53:14 2006 UTC (15 years ago) by dfer
Branch: MAIN
CVS Tags: checkpoint59, checkpoint58y_post, checkpoint58t_post, checkpoint60, checkpoint61, checkpoint58w_post, checkpoint58o_post, checkpoint58p_post, checkpoint58q_post, checkpoint58r_post, checkpoint58n_post, checkpoint59q, checkpoint59p, checkpoint59r, checkpoint59e, checkpoint59d, checkpoint59g, checkpoint59f, checkpoint59a, checkpoint59c, checkpoint59b, checkpoint59m, checkpoint59l, checkpoint59o, checkpoint59n, checkpoint59i, checkpoint59h, checkpoint59k, checkpoint58v_post, checkpoint58x_post, checkpoint59j, checkpoint58u_post, checkpoint58s_post, checkpoint61d, checkpoint61b, checkpoint61c, checkpoint61a
Changes since 1.5: +1 -1 lines
Oops mistake ... it should be a tab.

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 # SGI o3k IRIX64
55 #FC = f77
56 #FFLAGS = -extend_source -bytereclen -mips4 -r8 -static
57
58 # AER cluster
59 #FC = /opt/mpich/bin/mpif77
60 #FFLAGS = -byteswapio -r8 -Mnodclchk -Mextend
61
62 # File removal.
63 RM = rm -f
64
65 SMALLF = $(SRC:.F=.f)
66 OBJECTS = $(SRC:.F=.o)
67
68 .SUFFIXES: .o .f .F
69
70 all: $(EXECUTABLE)
71 $(EXECUTABLE): $(OBJECTS)
72 $(FC) -o $@ $(FFLAGS) $(OBJECTS) $(LIBDIRS) $(LIBS)
73
74 depend:
75 makedepend -o .f $(INCLUDEDIRS) $(SRC)
76
77 # The normal chain of rules is ( .F - .f - .o )
78 .F.f:
79 $(CPP) $(CPPFLAGS) $(INCLUDEDIRS) > $@
80 xerbla.f: xerbla.F
81 $(CPP) $(INCLUDEDIRS) > $@
82 .f.o:
83 $(FC) $(FFLAGS) -c $<
84
85 # Cleaning options.
86 clean:
87 $(RM) $(EXEDIR)optim.x *.o *.f
88
89 scratch:
90 $(RM) OPWARMD OPWARMI $(EXEDIR)optim.x $(OBJ)
91
92 # DO NOT DELETE
93

  ViewVC Help
Powered by ViewVC 1.1.22