/[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.2 - (show annotations) (download)
Fri Nov 15 04:03:24 2002 UTC (21 years, 4 months ago) by heimbach
Branch: MAIN
CVS Tags: checkpoint51k_post, checkpoint47e_post, hrcube4, checkpoint47c_post, checkpoint50c_post, checkpoint52d_pre, checkpoint48e_post, checkpoint50c_pre, checkpoint52j_pre, checkpoint51o_pre, checkpoint51l_post, checkpoint48i_post, checkpoint50d_pre, checkpoint52k_post, checkpoint51, checkpoint50, checkpoint52, checkpoint50d_post, checkpoint52f_post, checkpoint50b_pre, checkpoint51f_post, checkpoint48b_post, checkpoint51d_post, checkpoint48c_pre, checkpoint47d_pre, checkpoint51t_post, checkpoint51n_post, checkpoint52i_pre, hrcube_1, hrcube_2, hrcube_3, checkpoint51s_post, checkpoint47a_post, checkpoint48d_pre, checkpoint51j_post, checkpoint47i_post, checkpoint52e_pre, checkpoint52e_post, checkpoint51n_pre, checkpoint47d_post, checkpoint48d_post, checkpoint48f_post, checkpoint52b_pre, checkpoint51l_pre, checkpoint48h_post, checkpoint51q_post, checkpoint51b_pre, checkpoint47g_post, checkpoint52b_post, checkpoint52c_post, checkpoint51h_pre, checkpoint48a_post, checkpoint50f_post, checkpoint50a_post, checkpoint50f_pre, checkpoint52f_pre, checkpoint47j_post, branch-exfmods-tag, branchpoint-genmake2, checkpoint51r_post, checkpoint48c_post, checkpoint51i_post, checkpoint51b_post, checkpoint51c_post, checkpoint47b_post, checkpoint52d_post, checkpoint50g_post, checkpoint52a_pre, checkpoint50h_post, checkpoint52i_post, checkpoint50e_pre, checkpoint50i_post, checkpoint51i_pre, checkpoint52h_pre, checkpoint52j_post, checkpoint47f_post, checkpoint50e_post, branch-netcdf, checkpoint51e_post, checkpoint47, checkpoint48, checkpoint49, checkpoint51o_post, checkpoint51f_pre, checkpoint48g_post, checkpoint47h_post, checkpoint52a_post, checkpoint51g_post, ecco_c52_e35, checkpoint50b_post, checkpoint51m_post, checkpoint51a_post, checkpoint51p_post, checkpoint51u_post
Branch point for: branch-exfmods-curt, branch-genmake2, branch-nonh, tg2-branch, netcdf-sm0, checkpoint51n_branch
Changes since 1.1: +109 -0 lines
o Incorporating QNVS line search routines into MITgcm
  (this is separate code, not compiled with MITgcm,
  and therefore not under pkg)
  - lsopt/
  - optim/

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 # for SUN
64 #FC = f77
65 #FFLAGS = -C
66 # for Linux
67 FC = g77
68 FFLAGS = -Wimplicit -Wunused -Wuninitialized
69
70 # File removal.
71 RM = rm -f
72
73 .SUFFIXES: .o .f .F
74
75 all: $(EXECUTABLE)
76 $(EXECUTABLE): $(OBJ)
77 $(FC) -o $@ $(FFLAGS) $(OBJ) $(LIBDIRS) $(LIBS)
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 .f.o:
85 $(FC) $(FFLAGS) -c $<
86
87 # Cleaning options.
88 clean:
89 $(RM) $(EXEDIR)optim.x $(OBJ)
90
91 scratch:
92 $(RM) OPWARMD OPWARMI $(EXEDIR)optim.x $(OBJ)
93
94 # DO NOT DELETE
95
96 optim_main.f: blas1.h
97 optim_sub.f: ../bin/EEPARAMS.h ../bin/SIZE.h ../bin/ecco.h ../bin/ctrl.h
98 optim_sub.f: optim.h
99 optim_numbmod.f: ../bin/EEPARAMS.h ../bin/SIZE.h ../bin/ecco.h ../bin/ctrl.h
100 optim_numbmod.f: optim.h minimization.h
101 optim_initmod.f: ../bin/EEPARAMS.h ../bin/SIZE.h ../bin/ecco.h ../bin/ctrl.h
102 optim_initmod.f: optim.h
103 optim_readdata.f: ../bin/EEPARAMS.h ../bin/SIZE.h ../bin/ecco.h ../bin/ctrl.h
104 optim_readdata.f: optim.h minimization.h
105 optim_writedata.f: ../bin/EEPARAMS.h ../bin/SIZE.h ../bin/ecco.h
106 optim_writedata.f: ../bin/ctrl.h optim.h minimization.h
107 optim_write_control.f: ../bin/EEPARAMS.h ../bin/SIZE.h ../bin/ecco.h
108 optim_write_control.f: ../bin/ctrl.h optim.h
109 simul.f: ../bin/EEPARAMS.h ../bin/SIZE.h ../bin/ctrl.h

  ViewVC Help
Powered by ViewVC 1.1.22