/[MITgcm]/MITgcm/adjoint/makefile
ViewVC logotype

Contents of /MITgcm/adjoint/makefile

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


Revision 1.19 - (show annotations) (download)
Fri Jan 11 17:30:46 2002 UTC (20 years, 7 months ago) by heimbach
Branch: MAIN
CVS Tags: checkpoint43a-release1mods, release1-branch_tutorials, release1-branch-end, release1-branch_branchpoint
Branch point for: release1-branch
Changes since 1.18: +2 -3 lines
Added option  -nonew_arg to TAFFLAGS to retain consistency
between TAF 1.3... and previous versions.

1 SHELL = /bin/tcsh
2 RM = rm -f
3 LOC = $(PWD)
4 TAMC = tamc
5 TAF = ~fastopt/bin/taf
6 DEST = .
7 SOURCE_CODE = ../bin
8 ADJOINT_SCRIPT = ../adjoint
9 BASE = ..
10 PKG = $(BASE)/pkg
11 ADTAMCFLAGS = -reverse -i4 -r4 -admark ad
12 ADTAFFLAGS = -reverse -i4 -r4 -admark ad -nonew_arg
13 TLTAMCFLAGS = -forward -i4 -r4 -ftlmark g_
14 TLTAFFLAGS = -forward -i4 -r4 -ftlmark g_ -nonew_arg
15 # -warn_step -flow taf_flow.log
16
17 DIFF_FLAGS = -toplevel the_main_loop \
18 -input ' xx_theta_dummy \
19 xx_salt_dummy \
20 xx_tr1_dummy \
21 xx_hflux_dummy \
22 xx_sflux_dummy \
23 xx_tauu_dummy \
24 xx_tauv_dummy \
25 xx_sss_dummy \
26 xx_sst_dummy \
27 xx_diffkr_dummy \
28 xx_kapgm_dummy' \
29 -output 'fc'
30
31 ADTAMCFLAG = $(ADTAMCFLAGS) $(DIFF_FLAGS)
32 ADTAFFLAG = $(ADTAFFLAGS) $(DIFF_FLAGS)
33
34 TLTAMCFLAG = $(TLTAMCFLAGS) $(DIFF_FLAGS)
35 TLTAFFLAG = $(TLTAFFLAGS) $(DIFF_FLAGS)
36
37 # Source files for the MITgcmUV
38 SRC_MODEL = \
39 $(PKG)/autodiff/read_write.flow \
40 $(PKG)/autodiff/read_write_fld.flow \
41 $(PKG)/autodiff/read_write_rec.flow \
42 $(PKG)/autodiff/diags.flow \
43 $(PKG)/autodiff/cg2d.flow \
44 $(PKG)/autodiff/debug.flow \
45 $(PKG)/autodiff/dummy_in_stepping.flow \
46 $(PKG)/autodiff/external_fields_load.flow \
47 $(PKG)/autodiff/eesupp.flow \
48 $(PKG)/autodiff/active_file.flow \
49 $(PKG)/autodiff/write_state.flow \
50 $(PKG)/autodiff/ecco_check_exp.flow \
51 $(PKG)/autodiff/exch_ad.flow \
52 $(PKG)/autodiff/exch_z_ad.flow \
53 $(PKG)/autodiff/exch_uv_ad.flow \
54 $(PKG)/autodiff/global_sum_ad.flow \
55 $(PKG)/autodiff/global_max_ad.flow \
56 $(PKG)/autodiff/initialisation.flow \
57 $(PKG)/autodiff/mdsio.flow \
58 $(PKG)/autodiff/monitor.flow \
59 $(PKG)/autodiff/checkpoint.flow \
60 $(PKG)/autodiff/print_message.flow \
61 $(PKG)/autodiff/open_copy_data_file.flow\
62 $(PKG)/autodiff/timeave.flow \
63 \
64 $(SOURCE_CODE)/adams_bashforth2.f \
65 $(SOURCE_CODE)/calc_buoyancy.f \
66 $(SOURCE_CODE)/calc_common_factors.f \
67 $(SOURCE_CODE)/calc_diffusivity.f \
68 $(SOURCE_CODE)/calc_div_ghat.f \
69 $(SOURCE_CODE)/calc_exact_eta.f \
70 $(SOURCE_CODE)/calc_grad_phi_surf.f \
71 $(SOURCE_CODE)/calc_gs.f \
72 $(SOURCE_CODE)/calc_gt.f \
73 $(SOURCE_CODE)/calc_gtr1.f \
74 $(SOURCE_CODE)/calc_ivdc.f \
75 $(SOURCE_CODE)/calc_phi_hyd.f \
76 $(SOURCE_CODE)/calc_viscosity.f \
77 $(SOURCE_CODE)/comm_stats.f \
78 $(SOURCE_CODE)/convect.f \
79 $(SOURCE_CODE)/convective_adjustment.f \
80 $(SOURCE_CODE)/convective_adjustment_ini.f \
81 $(SOURCE_CODE)/correction_step.f \
82 $(SOURCE_CODE)/cycle_tracer.f \
83 $(SOURCE_CODE)/different_multiple.f \
84 $(SOURCE_CODE)/do_fields_blocking_exchanges.f \
85 $(SOURCE_CODE)/do_the_model_io.f \
86 $(SOURCE_CODE)/dynamics.f \
87 $(SOURCE_CODE)/external_forcing.f \
88 $(SOURCE_CODE)/external_forcing_surf.f \
89 $(SOURCE_CODE)/find_alpha.f \
90 $(SOURCE_CODE)/find_rho.f \
91 $(SOURCE_CODE)/forward_step.f \
92 $(SOURCE_CODE)/freeze.f \
93 \
94 $(SOURCE_CODE)/gad_advection.f \
95 $(SOURCE_CODE)/gad_biharm_x.f \
96 $(SOURCE_CODE)/gad_biharm_y.f \
97 $(SOURCE_CODE)/gad_c2_adv_r.f \
98 $(SOURCE_CODE)/gad_c2_adv_x.f \
99 $(SOURCE_CODE)/gad_c2_adv_y.f \
100 $(SOURCE_CODE)/gad_c4_adv_r.f \
101 $(SOURCE_CODE)/gad_c4_adv_x.f \
102 $(SOURCE_CODE)/gad_c4_adv_y.f \
103 $(SOURCE_CODE)/gad_calc_rhs.f \
104 $(SOURCE_CODE)/gad_del2.f \
105 $(SOURCE_CODE)/gad_diff_r.f \
106 $(SOURCE_CODE)/gad_diff_x.f \
107 $(SOURCE_CODE)/gad_diff_y.f \
108 $(SOURCE_CODE)/gad_dst3_adv_x.f \
109 $(SOURCE_CODE)/gad_dst3_adv_y.f \
110 $(SOURCE_CODE)/gad_dst3_adv_r.f \
111 $(SOURCE_CODE)/gad_dst3fl_adv_x.f \
112 $(SOURCE_CODE)/gad_dst3fl_adv_y.f \
113 $(SOURCE_CODE)/gad_dst3fl_adv_r.f \
114 $(SOURCE_CODE)/gad_fluxlimit_adv_r.f \
115 $(SOURCE_CODE)/gad_fluxlimit_adv_x.f \
116 $(SOURCE_CODE)/gad_fluxlimit_adv_y.f \
117 $(SOURCE_CODE)/gad_grad_x.f \
118 $(SOURCE_CODE)/gad_grad_y.f \
119 $(SOURCE_CODE)/gad_u3_adv_r.f \
120 $(SOURCE_CODE)/gad_u3_adv_x.f \
121 $(SOURCE_CODE)/gad_u3_adv_y.f \
122 \
123 $(SOURCE_CODE)/grad_sigma.f \
124 $(SOURCE_CODE)/impldiff.f \
125 $(SOURCE_CODE)/ini_autodiff.f \
126 $(SOURCE_CODE)/ini_cartesian_grid.f \
127 $(SOURCE_CODE)/ini_cg2d.f \
128 $(SOURCE_CODE)/ini_communication_patterns.f \
129 $(SOURCE_CODE)/ini_cori.f \
130 $(SOURCE_CODE)/ini_curvilinear_grid.f \
131 $(SOURCE_CODE)/ini_depths.f \
132 $(SOURCE_CODE)/ini_fields.f \
133 $(SOURCE_CODE)/ini_forcing.f \
134 $(SOURCE_CODE)/ini_grid.f \
135 $(SOURCE_CODE)/ini_linear_phisurf.f \
136 $(SOURCE_CODE)/ini_masks_etc.f \
137 $(SOURCE_CODE)/ini_mixing.f \
138 $(SOURCE_CODE)/ini_p_ground.f \
139 $(SOURCE_CODE)/ini_pnh.f \
140 $(SOURCE_CODE)/ini_psurf.f \
141 $(SOURCE_CODE)/ini_salt.f \
142 $(SOURCE_CODE)/ini_spherical_polar_grid.f \
143 $(SOURCE_CODE)/ini_theta.f \
144 $(SOURCE_CODE)/ini_tr1.f \
145 $(SOURCE_CODE)/ini_dynvars.f \
146 $(SOURCE_CODE)/ini_vel.f \
147 $(SOURCE_CODE)/ini_vertical_grid.f \
148 $(SOURCE_CODE)/initialise_varia.f \
149 $(SOURCE_CODE)/integrate_for_w.f \
150 $(SOURCE_CODE)/modeldata_example.f \
151 \
152 $(SOURCE_CODE)/mom_fluxform.f \
153 $(SOURCE_CODE)/mom_hdissip.f \
154 $(SOURCE_CODE)/mom_vecinv.f \
155 $(SOURCE_CODE)/mom_calc_hfacz.f \
156 $(SOURCE_CODE)/mom_calc_ke.f \
157 $(SOURCE_CODE)/mom_calc_strain.f \
158 $(SOURCE_CODE)/mom_calc_tension.f \
159 $(SOURCE_CODE)/mom_cdscheme.f \
160 $(SOURCE_CODE)/mom_u_adv_uu.f \
161 $(SOURCE_CODE)/mom_u_adv_vu.f \
162 $(SOURCE_CODE)/mom_u_adv_wu.f \
163 $(SOURCE_CODE)/mom_u_bottomdrag.f \
164 $(SOURCE_CODE)/mom_u_coriolis.f \
165 $(SOURCE_CODE)/mom_u_del2u.f \
166 $(SOURCE_CODE)/mom_u_metric_nh.f \
167 $(SOURCE_CODE)/mom_u_metric_sphere.f \
168 $(SOURCE_CODE)/mom_u_rviscflux.f \
169 $(SOURCE_CODE)/mom_u_sidedrag.f \
170 $(SOURCE_CODE)/mom_u_xviscflux.f \
171 $(SOURCE_CODE)/mom_u_yviscflux.f \
172 $(SOURCE_CODE)/mom_v_adv_uv.f \
173 $(SOURCE_CODE)/mom_v_adv_vv.f \
174 $(SOURCE_CODE)/mom_v_adv_wv.f \
175 $(SOURCE_CODE)/mom_v_bottomdrag.f \
176 $(SOURCE_CODE)/mom_v_coriolis.f \
177 $(SOURCE_CODE)/mom_v_del2v.f \
178 $(SOURCE_CODE)/mom_v_metric_nh.f \
179 $(SOURCE_CODE)/mom_v_metric_sphere.f \
180 $(SOURCE_CODE)/mom_v_rviscflux.f \
181 $(SOURCE_CODE)/mom_v_sidedrag.f \
182 $(SOURCE_CODE)/mom_v_xviscflux.f \
183 $(SOURCE_CODE)/mom_v_yviscflux.f \
184 $(SOURCE_CODE)/mom_vi_calc_absvort3.f \
185 $(SOURCE_CODE)/mom_vi_calc_hdiv.f \
186 $(SOURCE_CODE)/mom_vi_calc_ke.f \
187 $(SOURCE_CODE)/mom_vi_calc_relvort3.f \
188 $(SOURCE_CODE)/mom_vi_coriolis.f \
189 $(SOURCE_CODE)/mom_vi_del2uv.f \
190 $(SOURCE_CODE)/mom_vi_hdissip.f \
191 $(SOURCE_CODE)/mom_vi_u_coriolis.f \
192 $(SOURCE_CODE)/mom_vi_u_grad_ke.f \
193 $(SOURCE_CODE)/mom_vi_u_vertshear.f \
194 $(SOURCE_CODE)/mom_vi_v_coriolis.f \
195 $(SOURCE_CODE)/mom_vi_v_grad_ke.f \
196 $(SOURCE_CODE)/mom_vi_v_vertshear.f \
197 \
198 $(SOURCE_CODE)/packages_init_variables.f \
199 $(SOURCE_CODE)/plot_field.f \
200 $(SOURCE_CODE)/solve_for_pressure.f \
201 $(SOURCE_CODE)/state_summary.f \
202 $(SOURCE_CODE)/timestep.f \
203 $(SOURCE_CODE)/the_correction_step.f \
204 $(SOURCE_CODE)/the_main_loop.f \
205 $(SOURCE_CODE)/thermodynamics.f \
206 $(SOURCE_CODE)/timestep_tracer.f \
207 $(SOURCE_CODE)/swfrac.f \
208 \
209 $(SOURCE_CODE)/kpp_calc.f \
210 $(SOURCE_CODE)/kpp_calc_diff.f \
211 $(SOURCE_CODE)/kpp_calc_visc.f \
212 $(SOURCE_CODE)/kpp_do_diags.f \
213 $(SOURCE_CODE)/kpp_init.f \
214 $(SOURCE_CODE)/kpp_open_diags.f \
215 $(SOURCE_CODE)/kpp_routines.f \
216 $(SOURCE_CODE)/kpp_transport_s.f \
217 $(SOURCE_CODE)/kpp_transport_t.f \
218 \
219 $(SOURCE_CODE)/gmredi_calc_diff.f \
220 $(SOURCE_CODE)/gmredi_calc_tensor.f \
221 $(SOURCE_CODE)/gmredi_diags.f \
222 $(SOURCE_CODE)/gmredi_init.f \
223 $(SOURCE_CODE)/gmredi_rtransport.f \
224 $(SOURCE_CODE)/gmredi_slope_limit.f \
225 $(SOURCE_CODE)/gmredi_xtransport.f \
226 $(SOURCE_CODE)/gmredi_ytransport.f \
227 \
228 $(SOURCE_CODE)/ctrl_map_ini.f \
229 $(SOURCE_CODE)/ctrl_map_forcing.f \
230 \
231 $(SOURCE_CODE)/cost_final.f \
232 $(SOURCE_CODE)/cost_init.f \
233 $(SOURCE_CODE)/cost_tile.f \
234 $(SOURCE_CODE)/cost_test.f \
235 $(SOURCE_CODE)/cost_tracer.f \
236 \
237 $(SOURCE_CODE)/shap_filt_apply_ts.f \
238 $(SOURCE_CODE)/shap_filt_tracer_s1.f \
239 $(SOURCE_CODE)/shap_filt_tracer_s2.f \
240 $(SOURCE_CODE)/shap_filt_tracer_s2g.f \
241 $(SOURCE_CODE)/shap_filt_tracer_s4.f \
242 $(SOURCE_CODE)/shap_filt_uv_s1.f \
243 $(SOURCE_CODE)/shap_filt_uv_s2.f \
244 $(SOURCE_CODE)/shap_filt_uv_s2g.f \
245 $(SOURCE_CODE)/shap_filt_uv_s4.f \
246 \
247
248
249 #--------------------------------------------------------
250 # rules
251 #--------------------------------------------------------
252
253 allcode:
254 cd $(DEST) ; cat $(SRC_MODEL) >! tamc_code_ecco.f
255
256 admodeltamc:
257 cd $(DEST) ; $(TAMC) $(ADTAMCFLAG) tamc_code_ecco.f \
258 >! tamc_code_ecco_ad.prot
259
260 admodeltaf:
261 cd $(DEST) ; $(TAF) $(ADTAFFLAG) tamc_code_ecco.f
262
263 tlmodeltamc:
264 cd $(DEST) ; $(TAMC) $(TLTAMCFLAG) tamc_code_ecco.f \
265 >! tamc_code_ecco_tl.prot
266
267 tlmodeltaf:
268 cd $(DEST) ; $(TAF) $(TLTAFFLAG) tamc_code_ecco.f
269
270 adchange:
271 ${ADJOINT_SCRIPT}/adjoint_ecco_sed.com \
272 >! tamc_code_ecco_sed_ad.f ; \
273 cp $(PKG)/autodiff/adjoint_model.F \
274 $(PKG)/autodiff/adjoint_model.F_old ; \
275 cat tamc_code_ecco_sed_ad.f >> $(PKG)/autodiff/adjoint_model.F
276 adrestore:
277 cp $(PKG)/autodiff/adjoint_model.F_template \
278 $(PKG)/autodiff/adjoint_model.F
279
280 tltamc: allcode tlmodeltamc
281
282 tltaf: allcode tlmodeltaf
283
284 adtamc: adrestore allcode admodeltamc
285
286 adtaf: adrestore allcode admodeltaf

  ViewVC Help
Powered by ViewVC 1.1.22