/[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.3 - (show annotations) (download)
Thu Mar 4 17:59:17 2004 UTC (20 years, 1 month ago) by heimbach
Branch: MAIN
CVS Tags: checkpoint52l_pre, hrcube5, checkpoint56b_post, checkpoint54d_post, checkpoint54e_post, checkpoint55, checkpoint54, checkpoint56, checkpoint53, checkpoint54f_post, checkpoint55i_post, checkpoint55c_post, checkpoint53d_post, checkpoint54b_post, checkpoint52m_post, checkpoint55g_post, checkpoint55d_post, checkpoint54a_pre, checkpoint53c_post, checkpoint55d_pre, checkpoint55j_post, checkpoint54a_post, checkpoint55h_post, checkpoint55b_post, checkpoint53a_post, checkpoint55f_post, checkpoint53g_post, checkpoint56a_post, checkpoint53f_post, checkpoint52l_post, checkpoint52n_post, checkpoint53b_pre, checkpoint55a_post, checkpoint53b_post, checkpoint53d_pre, checkpoint55e_post, checkpoint54c_post
Changes since 1.2: +28 -47 lines
updating makefiles for optim, lsopt

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 EXEDIR = ./
22
23 # Location of cpp preprocessor
24 # default is (Linux)
25 CPP = cat $< | /lib/cpp -P -traditional
26 # on SUNOS
27 # CPP = cat $< | /usr/ccs/lib/cpp
28
29 INCLUDEDIRS = -I. \
30 -I../verification/natl_box_adjoint/build/
31
32 LIBDIRS = -L. \
33 -L../lsopt/
34
35 LIBS = -llsopt_ecco \
36 -lblas1
37
38 # OPTMODE is either equal to OFFLINE or ONLINE
39 OPTMODE = OFFLINE
40 EXECUTABLE = $(EXEDIR)optim.x
41
42 # The cpp flags.
43 CPPFLAGS = -DREAL_BYTE=4 \
44 -DMAX_INDEPEND=1000000 \
45 -D_RL='double precision' \
46 -D$(OPTMODE)
47
48 # -DMAX_INDEPEND=293570968 \
49 # FORTRAN compiler and its flags.
50 # default is (Linux)
51 FC = f77
52
53 # SGI o3k IRIX64
54 #FC = f77
55 #FFLAGS = -extend_source -bytereclen -mips4 -r8 -static
56
57 # AER cluster
58 #FC = /opt/mpich/bin/mpif77
59 #FFLAGS = -byteswapio -r8 -Mnodclchk -Mextend
60
61 # File removal.
62 RM = rm -f
63
64 SMALLF = $(SRC:.F=.f)
65 OBJECTS = $(SRC:.F=.o)
66
67 .SUFFIXES: .o .f .F
68
69 all: $(EXECUTABLE)
70 $(EXECUTABLE): $(OBJECTS)
71 $(FC) -o $@ $(FFLAGS) $(OBJECTS) $(LIBDIRS) $(LIBS)
72
73 depend:
74 makedepend -o .f $(INCLUDEDIRS) $(SRC)
75
76 # The normal chain of rules is ( .F - .f - .o )
77 .F.f:
78 $(CPP) $(CPPFLAGS) $(INCLUDEDIRS) > $@
79 .f.o:
80 $(FC) $(FFLAGS) -c $<
81
82 # Cleaning options.
83 clean:
84 $(RM) $(EXEDIR)optim.x *.o *.f
85
86 scratch:
87 $(RM) OPWARMD OPWARMI $(EXEDIR)optim.x $(OBJ)
88
89 # DO NOT DELETE
90

  ViewVC Help
Powered by ViewVC 1.1.22