/[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.1.2.1 - (show annotations) (download)
Tue Feb 5 20:34:34 2002 UTC (22 years, 9 months ago) by heimbach
Branch: ecco-branch
CVS Tags: ecco_c50_e30, ecco_c50_e31, icebear5, icebear4, icebear3, icebear2, ecco_c50_e29, ecco_c50_e28, ecco_c44_e19, ecco_c44_e18, ecco_c44_e17, ecco_c44_e16, ecco_ice2, ecco_ice1, ecco_c44_e25, ecco_c44_e22, ecco_c44_e23, ecco_c44_e20, ecco_c44_e21, ecco_c44_e26, ecco_c44_e27, ecco_c44_e24, ecco-branch-mod1, ecco-branch-mod2, ecco-branch-mod3, ecco-branch-mod4, ecco-branch-mod5
Branch point for: c24_e25_ice, icebear
Changes since 1.1: +105 -0 lines
o Updating adjoint/makefile to ECCO code
o Adding optim and lsopt for line search optimization.
o Adding verif. experiments for ECCO
Code will be tagged ecco-branch-mod1.

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 simul.F
20
21 OBJ = optim_main.o \
22 optim_sub.o \
23 optim_numbmod.o \
24 optim_initmod.o \
25 optim_readdata.o \
26 optim_writedata.o \
27 optim_write_control.o \
28 simul.o
29
30 EXEDIR = ./
31
32 # Location of library for optimization.
33 # on SUNOS
34 # CPP = cat $< | /usr/ccs/lib/cpp
35 # on linux
36 CPP = cat $< | /lib/cpp
37 INCLUDEDIRS = -I. \
38 -I../bin/ \
39 -I../eesupp/inc/ \
40 -I../model/inc/ \
41 -I../diags/inc/ \
42 -I../pkg/ecco/ \
43 -I../pkg/ctrl/
44
45 LIBDIRS = -L. \
46 -L../lsopt/ \
47 -L/opt/SUNWspro/SC4.2/lib/v7
48
49 LIBS = -llsopt_ecco \
50 -lblas1
51
52 # OPTMODE is either equal to OFFLINE or ONLINE
53 OPTMODE = OFFLINE
54 EXECUTABLE = $(EXEDIR)optim.x
55
56 # The cpp flags.
57 CPPFLAGS = -DREAL_BYTE=8 \
58 -DMAX_INDEPEND=29804 \
59 -D_RL='double precision' \
60 -D$(OPTMODE)
61
62 # FORTRAN compiler and its flags.
63 FC = f77
64 FFLAGS = -C
65
66 # File removal.
67 RM = rm -f
68
69 .SUFFIXES: .o .f .F
70
71 all: $(EXECUTABLE)
72 $(EXECUTABLE): $(OBJ)
73 $(FC) -o $@ $(FFLAGS) $(OBJ) $(LIBDIRS) $(LIBS)
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 .f.o:
81 $(FC) $(FFLAGS) -c $<
82
83 # Cleaning options.
84 clean:
85 $(RM) $(EXEDIR)optim.x $(OBJ)
86
87 scratch:
88 $(RM) OPWARMD OPWARMI $(EXEDIR)optim.x $(OBJ)
89
90 # DO NOT DELETE
91
92 optim_main.f: blas1.h
93 optim_sub.f: ../bin/EEPARAMS.h ../bin/SIZE.h ../bin/ecco.h ../bin/ctrl.h
94 optim_sub.f: optim.h
95 optim_numbmod.f: ../bin/EEPARAMS.h ../bin/SIZE.h ../bin/ecco.h ../bin/ctrl.h
96 optim_numbmod.f: optim.h minimization.h
97 optim_initmod.f: ../bin/EEPARAMS.h ../bin/SIZE.h ../bin/ecco.h ../bin/ctrl.h
98 optim_initmod.f: optim.h
99 optim_readdata.f: ../bin/EEPARAMS.h ../bin/SIZE.h ../bin/ecco.h ../bin/ctrl.h
100 optim_readdata.f: optim.h minimization.h
101 optim_writedata.f: ../bin/EEPARAMS.h ../bin/SIZE.h ../bin/ecco.h
102 optim_writedata.f: ../bin/ctrl.h optim.h minimization.h
103 optim_write_control.f: ../bin/EEPARAMS.h ../bin/SIZE.h ../bin/ecco.h
104 optim_write_control.f: ../bin/ctrl.h optim.h
105 simul.f: ../bin/EEPARAMS.h ../bin/SIZE.h ../bin/ctrl.h

  ViewVC Help
Powered by ViewVC 1.1.22