/[MITgcm]/MITgcm/optim/Makefile
ViewVC logotype

Annotation of /MITgcm/optim/Makefile

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.4 - (hide annotations) (download)
Fri Dec 3 01:06:34 2004 UTC (19 years, 4 months ago) by mlosch
Branch: MAIN
CVS Tags: checkpoint57m_post, checkpoint57g_pre, checkpoint57s_post, checkpoint58b_post, checkpoint57b_post, checkpoint57g_post, checkpoint57y_post, checkpoint57r_post, checkpoint57d_post, checkpoint57i_post, checkpoint58, checkpoint57, checkpoint58f_post, checkpoint57n_post, checkpoint58d_post, checkpoint58a_post, checkpoint57z_post, checkpoint58m_post, checkpoint57l_post, checkpoint57t_post, checkpoint57v_post, checkpoint57f_post, checkpoint57a_post, checkpoint57h_pre, checkpoint57h_post, checkpoint57y_pre, checkpoint57c_post, checkpoint58e_post, checkpoint57c_pre, checkpoint57e_post, checkpoint57p_post, checkpint57u_post, checkpoint57q_post, eckpoint57e_pre, checkpoint58k_post, checkpoint58l_post, checkpoint57h_done, checkpoint57j_post, checkpoint57f_pre, checkpoint58g_post, checkpoint58h_post, checkpoint56c_post, checkpoint58j_post, checkpoint57a_pre, checkpoint57o_post, checkpoint57k_post, checkpoint57w_post, checkpoint58i_post, checkpoint57x_post, checkpoint58c_post
Changes since 1.3: +1 -0 lines
o optim:
  - remove unnecessary header files
  - adjusted namelists
  - add xerbla.F to Makefile

1 heimbach 1.2
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 mlosch 1.4 xerbla.F \
20 heimbach 1.2 simul.F
21    
22     EXEDIR = ./
23    
24 heimbach 1.3 # Location of cpp preprocessor
25     # default is (Linux)
26     CPP = cat $< | /lib/cpp -P -traditional
27 heimbach 1.2 # on SUNOS
28     # CPP = cat $< | /usr/ccs/lib/cpp
29 heimbach 1.3
30 heimbach 1.2 INCLUDEDIRS = -I. \
31 heimbach 1.3 -I../verification/natl_box_adjoint/build/
32 heimbach 1.2
33     LIBDIRS = -L. \
34 heimbach 1.3 -L../lsopt/
35 heimbach 1.2
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 heimbach 1.3 CPPFLAGS = -DREAL_BYTE=4 \
45     -DMAX_INDEPEND=1000000 \
46     -D_RL='double precision' \
47     -D$(OPTMODE)
48 heimbach 1.2
49 heimbach 1.3 # -DMAX_INDEPEND=293570968 \
50 heimbach 1.2 # FORTRAN compiler and its flags.
51 heimbach 1.3 # 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 heimbach 1.2
62     # File removal.
63     RM = rm -f
64    
65 heimbach 1.3 SMALLF = $(SRC:.F=.f)
66     OBJECTS = $(SRC:.F=.o)
67    
68 heimbach 1.2 .SUFFIXES: .o .f .F
69    
70     all: $(EXECUTABLE)
71 heimbach 1.3 $(EXECUTABLE): $(OBJECTS)
72     $(FC) -o $@ $(FFLAGS) $(OBJECTS) $(LIBDIRS) $(LIBS)
73    
74 heimbach 1.2 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 heimbach 1.3 $(RM) $(EXEDIR)optim.x *.o *.f
86 heimbach 1.2
87     scratch:
88     $(RM) OPWARMD OPWARMI $(EXEDIR)optim.x $(OBJ)
89    
90     # DO NOT DELETE
91    

  ViewVC Help
Powered by ViewVC 1.1.22