2 |
RM = rm -f |
RM = rm -f |
3 |
LOC = $(PWD) |
LOC = $(PWD) |
4 |
TAMC = tamc |
TAMC = tamc |
5 |
TAF = ~fastopt/bin/taf |
###TAMC = /data43/ralf/tamc/tamc |
6 |
|
TAF = taf |
7 |
|
###TAF = ~fastopt/bin/taf |
8 |
DEST = . |
DEST = . |
9 |
SOURCE_CODE = ../bin |
SOURCE_CODE = ../flux_bin |
10 |
ADJOINT_SCRIPT = ../adjoint |
ADJOINT_SCRIPT = ../flux_adjoint |
11 |
BASE = .. |
BASE = .. |
12 |
PKG = $(BASE)/pkg |
PKG = $(BASE)/pkg |
13 |
ADTAMCFLAGS = -reverse -i4 -r4 -admark ad |
# |
14 |
ADTAFFLAGS = -reverse -i4 -r4 -admark ad |
ADTAMCFLAGS = -reverse -admark ad -i4 -r4 |
15 |
TLTAMCFLAGS = -forward -i4 -r4 -ftlmark g_ |
ADTAFFLAGS = -reverse -admark ad -i4 -r4 \ |
16 |
TLTAFFLAGS = -forward -i4 -r4 -ftlmark g_ |
-l taf_ad.log -flow taf_ad_flow.log -nonew_arg |
17 |
# -warn_step -flow taf_flow.log |
FTLTAMCFLAGS = -forward -ftlmark g_ -i4 -r4 |
18 |
|
FTLTAFFLAGS = -forward -ftlmark g_ -i4 -r4 \ |
19 |
|
-l taf_ftl.log -flow taf_ftl_flow.log -nonew_arg |
20 |
|
SVDTAMCFLAGS = -reverse -forward -pure -i4 -r4 |
21 |
|
SVDTAFFLAGS = -reverse -forward -pure -i4 -r4 \ |
22 |
|
-flow taf_flow.log -nonew_arg |
23 |
|
# |
24 |
|
# further useful options: -warn_step -flow taf_flow.log |
25 |
|
# NB: the svd option recommended in the TAMC manual doesn't work. |
26 |
|
|
27 |
DIFF_FLAGS = -toplevel the_main_loop \ |
DIFF_FLAGS = -toplevel the_main_loop \ |
28 |
-input ' xx_theta_dummy \ |
-input ' xx_theta_dummy \ |
32 |
xx_sflux_dummy \ |
xx_sflux_dummy \ |
33 |
xx_tauu_dummy \ |
xx_tauu_dummy \ |
34 |
xx_tauv_dummy \ |
xx_tauv_dummy \ |
35 |
xx_sss_dummy \ |
xx_atemp_dummy \ |
36 |
xx_sst_dummy \ |
xx_aqh_dummy \ |
37 |
xx_diffkr_dummy \ |
xx_uwind_dummy \ |
38 |
xx_kapgm_dummy' \ |
xx_vwind_dummy \ |
39 |
|
xx_obcsn_dummy \ |
40 |
|
xx_obcss_dummy \ |
41 |
|
xx_obcsw_dummy \ |
42 |
|
xx_obcse_dummy \ |
43 |
|
xx_sst_dummy \ |
44 |
|
xx_sss_dummy \ |
45 |
|
xx_diffkr_dummy \ |
46 |
|
xx_kapgm_dummy \ |
47 |
|
xx_efluxy_dummy \ |
48 |
|
xx_efluxp_dummy' \ |
49 |
-output 'fc' |
-output 'fc' |
50 |
|
|
51 |
ADTAMCFLAG = $(ADTAMCFLAGS) $(DIFF_FLAGS) |
ADTAMCFLAG = $(ADTAMCFLAGS) $(DIFF_FLAGS) |
52 |
ADTAFFLAG = $(ADTAFFLAGS) $(DIFF_FLAGS) |
ADTAFFLAG = $(ADTAFFLAGS) $(DIFF_FLAGS) |
53 |
|
|
54 |
TLTAMCFLAG = $(TLTAMCFLAGS) $(DIFF_FLAGS) |
FTLTAMCFLAG = $(FTLTAMCFLAGS) $(DIFF_FLAGS) |
55 |
TLTAFFLAG = $(TLTAFFLAGS) $(DIFF_FLAGS) |
FTLTAFFLAG = $(FTLTAFFLAGS) $(DIFF_FLAGS) |
56 |
|
|
57 |
|
SVDTAMCFLAG = $(SVDTAMCFLAGS) $(DIFF_FLAGS) |
58 |
|
SVDTAFFLAG = $(SVDTAFFLAGS) $(DIFF_FLAGS) |
59 |
|
|
60 |
# Source files for the MITgcmUV |
# Source files for the MITgcmUV |
61 |
SRC_MODEL = \ |
SRC_MODEL = \ |
62 |
$(PKG)/autodiff/read_write.flow \ |
$(PKG)/autodiff/read_write.flow \ |
63 |
$(PKG)/autodiff/read_write_fld.flow \ |
$(PKG)/autodiff/read_write_fld.flow \ |
64 |
$(PKG)/autodiff/read_write_rec.flow \ |
$(PKG)/autodiff/read_write_rec.flow \ |
|
$(PKG)/autodiff/diags.flow \ |
|
65 |
$(PKG)/autodiff/cg2d.flow \ |
$(PKG)/autodiff/cg2d.flow \ |
66 |
|
$(PKG)/autodiff/diags.flow \ |
67 |
$(PKG)/autodiff/debug.flow \ |
$(PKG)/autodiff/debug.flow \ |
68 |
|
$(PKG)/autodiff/do_the_model_io.flow \ |
69 |
$(PKG)/autodiff/dummy_in_stepping.flow \ |
$(PKG)/autodiff/dummy_in_stepping.flow \ |
|
$(PKG)/autodiff/external_fields_load.flow \ |
|
70 |
$(PKG)/autodiff/eesupp.flow \ |
$(PKG)/autodiff/eesupp.flow \ |
71 |
$(PKG)/autodiff/active_file.flow \ |
$(PKG)/autodiff/active_file.flow \ |
72 |
$(PKG)/autodiff/write_state.flow \ |
$(PKG)/autodiff/write_state.flow \ |
79 |
$(PKG)/autodiff/initialisation.flow \ |
$(PKG)/autodiff/initialisation.flow \ |
80 |
$(PKG)/autodiff/mdsio.flow \ |
$(PKG)/autodiff/mdsio.flow \ |
81 |
$(PKG)/autodiff/monitor.flow \ |
$(PKG)/autodiff/monitor.flow \ |
82 |
|
$(PKG)/autodiff/obcs.flow \ |
83 |
$(PKG)/autodiff/checkpoint.flow \ |
$(PKG)/autodiff/checkpoint.flow \ |
84 |
$(PKG)/autodiff/print_message.flow \ |
$(PKG)/autodiff/print_message.flow \ |
85 |
$(PKG)/autodiff/open_copy_data_file.flow\ |
$(PKG)/autodiff/open_copy_data_file.flow\ |
97 |
$(SOURCE_CODE)/calc_ivdc.f \ |
$(SOURCE_CODE)/calc_ivdc.f \ |
98 |
$(SOURCE_CODE)/calc_phi_hyd.f \ |
$(SOURCE_CODE)/calc_phi_hyd.f \ |
99 |
$(SOURCE_CODE)/calc_viscosity.f \ |
$(SOURCE_CODE)/calc_viscosity.f \ |
|
$(SOURCE_CODE)/comm_stats.f \ |
|
100 |
$(SOURCE_CODE)/convect.f \ |
$(SOURCE_CODE)/convect.f \ |
101 |
$(SOURCE_CODE)/convective_adjustment.f \ |
$(SOURCE_CODE)/convective_adjustment.f \ |
102 |
$(SOURCE_CODE)/convective_adjustment_ini.f \ |
$(SOURCE_CODE)/convective_adjustment_ini.f \ |
104 |
$(SOURCE_CODE)/cycle_tracer.f \ |
$(SOURCE_CODE)/cycle_tracer.f \ |
105 |
$(SOURCE_CODE)/different_multiple.f \ |
$(SOURCE_CODE)/different_multiple.f \ |
106 |
$(SOURCE_CODE)/do_fields_blocking_exchanges.f \ |
$(SOURCE_CODE)/do_fields_blocking_exchanges.f \ |
|
$(SOURCE_CODE)/do_the_model_io.f \ |
|
107 |
$(SOURCE_CODE)/dynamics.f \ |
$(SOURCE_CODE)/dynamics.f \ |
108 |
$(SOURCE_CODE)/external_forcing.f \ |
$(SOURCE_CODE)/external_forcing.f \ |
109 |
$(SOURCE_CODE)/external_forcing_surf.f \ |
$(SOURCE_CODE)/external_forcing_surf.f \ |
110 |
$(SOURCE_CODE)/find_alpha.f \ |
$(SOURCE_CODE)/find_alpha.f \ |
111 |
$(SOURCE_CODE)/find_rho.f \ |
$(SOURCE_CODE)/find_rho.f \ |
|
$(SOURCE_CODE)/forward_step.f \ |
|
112 |
$(SOURCE_CODE)/freeze.f \ |
$(SOURCE_CODE)/freeze.f \ |
113 |
\ |
\ |
114 |
|
$(SOURCE_CODE)/calc_grad_phi_hyd.f \ |
115 |
|
$(SOURCE_CODE)/comm_stats.f \ |
116 |
|
$(SOURCE_CODE)/convective_weights.f \ |
117 |
|
$(SOURCE_CODE)/convectively_mixtracer.f \ |
118 |
|
$(SOURCE_CODE)/diags_phi_hyd.f \ |
119 |
|
$(SOURCE_CODE)/diags_phi_rlow.f \ |
120 |
|
$(SOURCE_CODE)/do_stagger_fields_exchanges.f \ |
121 |
|
$(SOURCE_CODE)/external_fields_load.f \ |
122 |
|
$(SOURCE_CODE)/integr_continuity.f \ |
123 |
|
\ |
124 |
$(SOURCE_CODE)/gad_advection.f \ |
$(SOURCE_CODE)/gad_advection.f \ |
125 |
$(SOURCE_CODE)/gad_biharm_x.f \ |
$(SOURCE_CODE)/gad_biharm_x.f \ |
126 |
$(SOURCE_CODE)/gad_biharm_y.f \ |
$(SOURCE_CODE)/gad_biharm_y.f \ |
152 |
\ |
\ |
153 |
$(SOURCE_CODE)/grad_sigma.f \ |
$(SOURCE_CODE)/grad_sigma.f \ |
154 |
$(SOURCE_CODE)/impldiff.f \ |
$(SOURCE_CODE)/impldiff.f \ |
155 |
|
$(SOURCE_CODE)/ini_autodiff.f \ |
156 |
$(SOURCE_CODE)/ini_cartesian_grid.f \ |
$(SOURCE_CODE)/ini_cartesian_grid.f \ |
157 |
$(SOURCE_CODE)/ini_cg2d.f \ |
$(SOURCE_CODE)/ini_cg2d.f \ |
158 |
$(SOURCE_CODE)/ini_communication_patterns.f \ |
$(SOURCE_CODE)/ini_communication_patterns.f \ |
159 |
$(SOURCE_CODE)/ini_cori.f \ |
$(SOURCE_CODE)/ini_cori.f \ |
160 |
$(SOURCE_CODE)/ini_curvilinear_grid.f \ |
$(SOURCE_CODE)/ini_curvilinear_grid.f \ |
161 |
$(SOURCE_CODE)/ini_depths.f \ |
$(SOURCE_CODE)/ini_depths.f \ |
167 |
$(SOURCE_CODE)/ini_mixing.f \ |
$(SOURCE_CODE)/ini_mixing.f \ |
168 |
$(SOURCE_CODE)/ini_p_ground.f \ |
$(SOURCE_CODE)/ini_p_ground.f \ |
169 |
$(SOURCE_CODE)/ini_pnh.f \ |
$(SOURCE_CODE)/ini_pnh.f \ |
170 |
$(SOURCE_CODE)/ini_procs.f \ |
$(SOURCE_CODE)/ini_pressure.f \ |
171 |
$(SOURCE_CODE)/ini_psurf.f \ |
$(SOURCE_CODE)/ini_psurf.f \ |
172 |
$(SOURCE_CODE)/ini_salt.f \ |
$(SOURCE_CODE)/ini_salt.f \ |
173 |
$(SOURCE_CODE)/ini_spherical_polar_grid.f \ |
$(SOURCE_CODE)/ini_spherical_polar_grid.f \ |
185 |
$(SOURCE_CODE)/mom_vecinv.f \ |
$(SOURCE_CODE)/mom_vecinv.f \ |
186 |
$(SOURCE_CODE)/mom_calc_hfacz.f \ |
$(SOURCE_CODE)/mom_calc_hfacz.f \ |
187 |
$(SOURCE_CODE)/mom_calc_ke.f \ |
$(SOURCE_CODE)/mom_calc_ke.f \ |
188 |
|
$(SOURCE_CODE)/mom_calc_rtrans.f \ |
189 |
$(SOURCE_CODE)/mom_calc_strain.f \ |
$(SOURCE_CODE)/mom_calc_strain.f \ |
190 |
$(SOURCE_CODE)/mom_calc_tension.f \ |
$(SOURCE_CODE)/mom_calc_tension.f \ |
191 |
$(SOURCE_CODE)/mom_cdscheme.f \ |
$(SOURCE_CODE)/mom_cdscheme.f \ |
193 |
$(SOURCE_CODE)/mom_u_adv_vu.f \ |
$(SOURCE_CODE)/mom_u_adv_vu.f \ |
194 |
$(SOURCE_CODE)/mom_u_adv_wu.f \ |
$(SOURCE_CODE)/mom_u_adv_wu.f \ |
195 |
$(SOURCE_CODE)/mom_u_bottomdrag.f \ |
$(SOURCE_CODE)/mom_u_bottomdrag.f \ |
196 |
|
$(SOURCE_CODE)/mom_u_coriolis.f \ |
197 |
|
$(SOURCE_CODE)/mom_u_coriolis_nh.f \ |
198 |
$(SOURCE_CODE)/mom_u_del2u.f \ |
$(SOURCE_CODE)/mom_u_del2u.f \ |
199 |
$(SOURCE_CODE)/mom_u_metric_nh.f \ |
$(SOURCE_CODE)/mom_u_metric_nh.f \ |
200 |
$(SOURCE_CODE)/mom_u_metric_sphere.f \ |
$(SOURCE_CODE)/mom_u_metric_sphere.f \ |
206 |
$(SOURCE_CODE)/mom_v_adv_vv.f \ |
$(SOURCE_CODE)/mom_v_adv_vv.f \ |
207 |
$(SOURCE_CODE)/mom_v_adv_wv.f \ |
$(SOURCE_CODE)/mom_v_adv_wv.f \ |
208 |
$(SOURCE_CODE)/mom_v_bottomdrag.f \ |
$(SOURCE_CODE)/mom_v_bottomdrag.f \ |
209 |
|
$(SOURCE_CODE)/mom_v_coriolis.f \ |
210 |
$(SOURCE_CODE)/mom_v_del2v.f \ |
$(SOURCE_CODE)/mom_v_del2v.f \ |
211 |
$(SOURCE_CODE)/mom_v_metric_nh.f \ |
$(SOURCE_CODE)/mom_v_metric_nh.f \ |
212 |
$(SOURCE_CODE)/mom_v_metric_sphere.f \ |
$(SOURCE_CODE)/mom_v_metric_sphere.f \ |
230 |
\ |
\ |
231 |
$(SOURCE_CODE)/packages_init_variables.f \ |
$(SOURCE_CODE)/packages_init_variables.f \ |
232 |
$(SOURCE_CODE)/plot_field.f \ |
$(SOURCE_CODE)/plot_field.f \ |
233 |
|
$(SOURCE_CODE)/pressure_for_eos.f \ |
234 |
|
$(SOURCE_CODE)/quasihydrostaticterms.f \ |
235 |
$(SOURCE_CODE)/solve_for_pressure.f \ |
$(SOURCE_CODE)/solve_for_pressure.f \ |
236 |
$(SOURCE_CODE)/state_summary.f \ |
$(SOURCE_CODE)/state_summary.f \ |
237 |
$(SOURCE_CODE)/timestep.f \ |
$(SOURCE_CODE)/timestep.f \ |
238 |
$(SOURCE_CODE)/the_correction_step.f \ |
$(SOURCE_CODE)/the_correction_step.f \ |
|
$(SOURCE_CODE)/the_main_loop.f \ |
|
239 |
$(SOURCE_CODE)/thermodynamics.f \ |
$(SOURCE_CODE)/thermodynamics.f \ |
240 |
$(SOURCE_CODE)/timestep_tracer.f \ |
$(SOURCE_CODE)/timestep_tracer.f \ |
241 |
$(SOURCE_CODE)/swfrac.f \ |
$(SOURCE_CODE)/swfrac.f \ |
242 |
|
$(SOURCE_CODE)/update_etah.f \ |
243 |
\ |
\ |
244 |
$(SOURCE_CODE)/kpp_calc.f \ |
$(SOURCE_CODE)/kpp_calc.f \ |
245 |
$(SOURCE_CODE)/kpp_calc_diff.f \ |
$(SOURCE_CODE)/kpp_calc_diff.f \ |
252 |
$(SOURCE_CODE)/kpp_transport_t.f \ |
$(SOURCE_CODE)/kpp_transport_t.f \ |
253 |
\ |
\ |
254 |
$(SOURCE_CODE)/gmredi_calc_diff.f \ |
$(SOURCE_CODE)/gmredi_calc_diff.f \ |
255 |
|
$(SOURCE_CODE)/gmredi_calc_psi_b.f \ |
256 |
$(SOURCE_CODE)/gmredi_calc_tensor.f \ |
$(SOURCE_CODE)/gmredi_calc_tensor.f \ |
257 |
|
$(SOURCE_CODE)/gmredi_calc_uvflow.f \ |
258 |
|
$(SOURCE_CODE)/gmredi_calc_wflow.f \ |
259 |
$(SOURCE_CODE)/gmredi_diags.f \ |
$(SOURCE_CODE)/gmredi_diags.f \ |
260 |
$(SOURCE_CODE)/gmredi_init.f \ |
$(SOURCE_CODE)/gmredi_init.f \ |
261 |
$(SOURCE_CODE)/gmredi_rtransport.f \ |
$(SOURCE_CODE)/gmredi_rtransport.f \ |
262 |
$(SOURCE_CODE)/gmredi_slope_limit.f \ |
$(SOURCE_CODE)/gmredi_slope_limit.f \ |
263 |
|
$(SOURCE_CODE)/gmredi_slope_psi.f \ |
264 |
$(SOURCE_CODE)/gmredi_xtransport.f \ |
$(SOURCE_CODE)/gmredi_xtransport.f \ |
265 |
$(SOURCE_CODE)/gmredi_ytransport.f \ |
$(SOURCE_CODE)/gmredi_ytransport.f \ |
266 |
\ |
\ |
|
$(SOURCE_CODE)/ctrl_map_ini.f \ |
|
|
$(SOURCE_CODE)/ctrl_map_forcing.f \ |
|
267 |
\ |
\ |
268 |
|
$(SOURCE_CODE)/cost_aqh.f \ |
269 |
|
$(SOURCE_CODE)/cost_argo_salt.f \ |
270 |
|
$(SOURCE_CODE)/cost_argo_theta.f \ |
271 |
|
$(SOURCE_CODE)/cost_atemp.f \ |
272 |
|
$(SOURCE_CODE)/cost_atlantic.f \ |
273 |
|
$(SOURCE_CODE)/cost_averagesfields.f \ |
274 |
|
$(SOURCE_CODE)/cost_averagesfinal.f \ |
275 |
|
$(SOURCE_CODE)/cost_averagesflags.f \ |
276 |
|
$(SOURCE_CODE)/cost_averagesinit.f \ |
277 |
|
$(SOURCE_CODE)/cost_ctds.f \ |
278 |
|
$(SOURCE_CODE)/cost_ctdt.f \ |
279 |
|
$(SOURCE_CODE)/cost_drift.f \ |
280 |
|
$(SOURCE_CODE)/cost_drifter.f \ |
281 |
|
$(SOURCE_CODE)/cost_driftw.f \ |
282 |
$(SOURCE_CODE)/cost_final.f \ |
$(SOURCE_CODE)/cost_final.f \ |
283 |
$(SOURCE_CODE)/cost_init.f \ |
$(SOURCE_CODE)/cost_forcing.f \ |
284 |
$(SOURCE_CODE)/cost_tile.f \ |
$(SOURCE_CODE)/cost_geoid.f \ |
285 |
$(SOURCE_CODE)/cost_test.f \ |
$(SOURCE_CODE)/cost_heatflux.f \ |
286 |
$(SOURCE_CODE)/cost_tracer.f \ |
$(SOURCE_CODE)/cost_hyd.f \ |
287 |
|
$(SOURCE_CODE)/cost_initvaria.f \ |
288 |
|
$(SOURCE_CODE)/cost_merstress.f \ |
289 |
|
$(SOURCE_CODE)/cost_readers.f \ |
290 |
|
$(SOURCE_CODE)/cost_readsssfields.f \ |
291 |
|
$(SOURCE_CODE)/cost_readsstfields.f \ |
292 |
|
$(SOURCE_CODE)/cost_readscatxfields.f \ |
293 |
|
$(SOURCE_CODE)/cost_readscatyfields.f \ |
294 |
|
$(SOURCE_CODE)/cost_readtopex.f \ |
295 |
|
$(SOURCE_CODE)/cost_readtopexmean.f \ |
296 |
|
$(SOURCE_CODE)/cost_salt.f \ |
297 |
|
$(SOURCE_CODE)/cost_salt0.f \ |
298 |
|
$(SOURCE_CODE)/cost_saltflux.f \ |
299 |
|
$(SOURCE_CODE)/cost_scat.f \ |
300 |
|
$(SOURCE_CODE)/cost_ssh.f \ |
301 |
|
$(SOURCE_CODE)/cost_ssh_mean.f \ |
302 |
|
$(SOURCE_CODE)/cost_sss.f \ |
303 |
|
$(SOURCE_CODE)/cost_sst.f \ |
304 |
|
$(SOURCE_CODE)/cost_theta.f \ |
305 |
|
$(SOURCE_CODE)/cost_theta0.f \ |
306 |
|
$(SOURCE_CODE)/cost_uwind.f \ |
307 |
|
$(SOURCE_CODE)/cost_vwind.f \ |
308 |
|
$(SOURCE_CODE)/cost_xbt.f \ |
309 |
|
$(SOURCE_CODE)/cost_zonstress.f \ |
310 |
|
$(SOURCE_CODE)/cost_obcs.f \ |
311 |
|
$(SOURCE_CODE)/cost_obcsn.f \ |
312 |
|
$(SOURCE_CODE)/cost_obcss.f \ |
313 |
|
$(SOURCE_CODE)/cost_obcsw.f \ |
314 |
|
$(SOURCE_CODE)/cost_obcse.f \ |
315 |
|
$(SOURCE_CODE)/cost_ice.f \ |
316 |
|
$(SOURCE_CODE)/sw_ptmp.f \ |
317 |
|
$(SOURCE_CODE)/sw_adtg.f \ |
318 |
|
$(SOURCE_CODE)/cost_kapgm.f \ |
319 |
|
$(SOURCE_CODE)/cost_readargot.f \ |
320 |
|
$(SOURCE_CODE)/cost_readargos.f \ |
321 |
|
$(SOURCE_CODE)/cost_ctdtclim.f \ |
322 |
|
$(SOURCE_CODE)/cost_ctdsclim.f \ |
323 |
|
$(SOURCE_CODE)/cost_readtmifields.f \ |
324 |
|
$(SOURCE_CODE)/cost_tmi.f \ |
325 |
|
\ |
326 |
|
$(SOURCE_CODE)/ctrl_get_gen.f \ |
327 |
|
$(SOURCE_CODE)/ctrl_get_gen_rec.f \ |
328 |
|
$(SOURCE_CODE)/ctrl_getobcsn.f \ |
329 |
|
$(SOURCE_CODE)/ctrl_getobcss.f \ |
330 |
|
$(SOURCE_CODE)/ctrl_getobcsw.f \ |
331 |
|
$(SOURCE_CODE)/ctrl_getobcse.f \ |
332 |
|
$(SOURCE_CODE)/ctrl_getrec.f \ |
333 |
|
$(SOURCE_CODE)/ctrl_init_variables.f \ |
334 |
|
$(SOURCE_CODE)/ctrl_map_ini.f \ |
335 |
\ |
\ |
336 |
|
$(SOURCE_CODE)/ecco_init.f \ |
337 |
|
$(SOURCE_CODE)/ecco_the_main_loop.f \ |
338 |
|
\ |
339 |
|
$(SOURCE_CODE)/exf_init.f \ |
340 |
|
$(SOURCE_CODE)/exf_init_runoff.f \ |
341 |
|
$(SOURCE_CODE)/exf_readparms.f \ |
342 |
|
$(SOURCE_CODE)/exf_summary.f \ |
343 |
|
$(SOURCE_CODE)/exf_bulkformulae.f \ |
344 |
|
$(SOURCE_CODE)/exf_bulkcdn.f \ |
345 |
|
$(SOURCE_CODE)/exf_bulkqsat.f \ |
346 |
|
$(SOURCE_CODE)/exf_bulkrhn.f \ |
347 |
|
$(SOURCE_CODE)/exf_getffields.f \ |
348 |
|
$(SOURCE_CODE)/exf_getffieldrec.f \ |
349 |
|
$(SOURCE_CODE)/exf_getforcing.f \ |
350 |
|
$(SOURCE_CODE)/exf_mapfields.f \ |
351 |
|
$(SOURCE_CODE)/exf_getobcs.f \ |
352 |
|
$(SOURCE_CODE)/exf_getsurfacefluxes.f \ |
353 |
|
$(SOURCE_CODE)/exf_swapffields.f \ |
354 |
|
$(SOURCE_CODE)/exf_filter_rl.f \ |
355 |
|
$(SOURCE_CODE)/exf_filter_rs.f \ |
356 |
|
$(SOURCE_CODE)/exf_set_gen.f \ |
357 |
|
$(SOURCE_CODE)/exf_set_obcs.f \ |
358 |
|
\ |
359 |
|
$(SOURCE_CODE)/exf_clim_init.f \ |
360 |
|
$(SOURCE_CODE)/exf_clim_readparms.f \ |
361 |
|
$(SOURCE_CODE)/exf_clim_summary.f \ |
362 |
|
$(SOURCE_CODE)/exf_getclim.f \ |
363 |
|
$(SOURCE_CODE)/exf_set_climsalt.f \ |
364 |
|
$(SOURCE_CODE)/exf_set_climtemp.f \ |
365 |
|
$(SOURCE_CODE)/exf_set_climsss.f \ |
366 |
|
$(SOURCE_CODE)/exf_set_climsst.f \ |
367 |
|
\ |
368 |
|
$(SOURCE_CODE)/cal_addtime.f \ |
369 |
|
$(SOURCE_CODE)/cal_checkdate.f \ |
370 |
|
$(SOURCE_CODE)/cal_compdates.f \ |
371 |
|
$(SOURCE_CODE)/cal_convdate.f \ |
372 |
|
$(SOURCE_CODE)/cal_copydate.f \ |
373 |
|
$(SOURCE_CODE)/cal_daysformonth.f \ |
374 |
|
$(SOURCE_CODE)/cal_dayspermonth.f \ |
375 |
|
$(SOURCE_CODE)/cal_fulldate.f \ |
376 |
|
$(SOURCE_CODE)/cal_getdate.f \ |
377 |
|
$(SOURCE_CODE)/cal_getmonthsrec.f \ |
378 |
|
$(SOURCE_CODE)/cal_intdays.f \ |
379 |
|
$(SOURCE_CODE)/cal_intmonths.f \ |
380 |
|
$(SOURCE_CODE)/cal_intsteps.f \ |
381 |
|
$(SOURCE_CODE)/cal_intyears.f \ |
382 |
|
$(SOURCE_CODE)/cal_isleap.f \ |
383 |
|
$(SOURCE_CODE)/cal_monthsforyear.f \ |
384 |
|
$(SOURCE_CODE)/cal_monthsperyear.f \ |
385 |
|
$(SOURCE_CODE)/cal_nstepday.f \ |
386 |
|
$(SOURCE_CODE)/cal_numints.f \ |
387 |
|
$(SOURCE_CODE)/cal_printdate.f \ |
388 |
|
$(SOURCE_CODE)/cal_printerror.f \ |
389 |
|
$(SOURCE_CODE)/cal_stepsforday.f \ |
390 |
|
$(SOURCE_CODE)/cal_stepsperday.f \ |
391 |
|
$(SOURCE_CODE)/cal_subdates.f \ |
392 |
|
$(SOURCE_CODE)/cal_timeinterval.f \ |
393 |
|
$(SOURCE_CODE)/cal_timepassed.f \ |
394 |
|
$(SOURCE_CODE)/cal_timestamp.f \ |
395 |
|
$(SOURCE_CODE)/cal_toseconds.f \ |
396 |
|
$(SOURCE_CODE)/cal_weekday.f \ |
397 |
|
\ |
398 |
|
$(SOURCE_CODE)/obcs_apply_sloc.f \ |
399 |
|
$(SOURCE_CODE)/obcs_apply_tloc.f \ |
400 |
|
$(SOURCE_CODE)/obcs_apply_ts.f \ |
401 |
|
$(SOURCE_CODE)/obcs_apply_uv.f \ |
402 |
|
$(SOURCE_CODE)/obcs_calc.f \ |
403 |
|
$(SOURCE_CODE)/obcs_init_variables.f \ |
404 |
|
$(SOURCE_CODE)/obcs_sponge.f \ |
405 |
|
\ |
406 |
|
|
407 |
|
|
408 |
|
# $(SOURCE_CODE)/advect.f \ |
409 |
|
# $(SOURCE_CODE)/budget.f \ |
410 |
|
# $(SOURCE_CODE)/diffus.f \ |
411 |
|
# $(SOURCE_CODE)/dynsolver.f \ |
412 |
|
# $(SOURCE_CODE)/groatb.f \ |
413 |
|
# $(SOURCE_CODE)/growth.f \ |
414 |
|
# $(SOURCE_CODE)/ostres.f \ |
415 |
|
# $(SOURCE_CODE)/seaice_check.f \ |
416 |
|
# $(SOURCE_CODE)/seaice_do_diags.f \ |
417 |
|
# $(SOURCE_CODE)/seaice_get_forcing.f \ |
418 |
|
# $(SOURCE_CODE)/seaice_init.f \ |
419 |
|
# $(SOURCE_CODE)/seaice_model.f \ |
420 |
|
# $(SOURCE_CODE)/seaice_pickup.f \ |
421 |
|
# $(SOURCE_CODE)/seaice_readparms.f \ |
422 |
|
# $(SOURCE_CODE)/seaice_exch.f \ |
423 |
|
# $(SOURCE_CODE)/lsr.f |
424 |
|
# $(SOURCE_CODE)/adi.f |
425 |
|
|
426 |
|
|
427 |
#-------------------------------------------------------- |
#-------------------------------------------------------- |
428 |
# rules |
# rules |
429 |
#-------------------------------------------------------- |
#-------------------------------------------------------- |
430 |
|
|
431 |
|
small_f: |
432 |
|
cd $(SOURCE_CODE); $(MAKE) depend; $(MAKE) small_f |
433 |
|
|
434 |
allcode: |
allcode: |
435 |
cd $(DEST) ; cat $(SRC_MODEL) >! tamc_code_ecco.f |
cd $(DEST) ; cat $(SRC_MODEL) >! tamc_code_ecco.f |
436 |
|
|
441 |
admodeltaf: |
admodeltaf: |
442 |
cd $(DEST) ; $(TAF) $(ADTAFFLAG) tamc_code_ecco.f |
cd $(DEST) ; $(TAF) $(ADTAFFLAG) tamc_code_ecco.f |
443 |
|
|
444 |
tlmodeltamc: |
ftlmodeltamc: |
445 |
cd $(DEST) ; $(TAMC) $(TLTAMCFLAG) tamc_code_ecco.f \ |
cd $(DEST) ; $(TAMC) $(FTLTAMCFLAG) tamc_code_ecco.f \ |
446 |
>! tamc_code_ecco_tl.prot |
>! tamc_code_ecco_ftl.prot |
447 |
|
|
448 |
|
ftlmodeltaf: |
449 |
|
cd $(DEST) ; $(TAF) $(FTLTAFFLAG) tamc_code_ecco.f |
450 |
|
|
451 |
tlmodeltaf: |
svdmodeltaf: |
452 |
cd $(DEST) ; $(TAF) $(TLTAFFLAG) tamc_code_ecco.f |
cd $(DEST) ; $(TAF) $(SVDTAFFLAG) tamc_code_ecco.f |
453 |
|
|
454 |
adchange: |
adchange: |
455 |
${ADJOINT_SCRIPT}/adjoint_ecco_sed.com \ |
cp $(PKG)/autodiff/adjoint_model.F_template \ |
456 |
>! tamc_code_ecco_sed_ad.f ; \ |
$(PKG)/autodiff/adjoint_model.F ; \ |
457 |
|
${ADJOINT_SCRIPT}/adjoint_sed.com \ |
458 |
|
>! tamc_code_ecco_sed_ad.f ; \ |
459 |
cp $(PKG)/autodiff/adjoint_model.F \ |
cp $(PKG)/autodiff/adjoint_model.F \ |
460 |
$(PKG)/autodiff/adjoint_model.F_old ; \ |
$(PKG)/autodiff/adjoint_model.F_old ; \ |
461 |
cat tamc_code_ecco_sed_ad.f >> $(PKG)/autodiff/adjoint_model.F |
cat tamc_code_ecco_sed_ad.f >> $(PKG)/autodiff/adjoint_model.F |
462 |
|
|
463 |
|
ftlchange: |
464 |
|
cp $(PKG)/autodiff/tangentlinear_model.F_template \ |
465 |
|
$(PKG)/autodiff/tangentlinear_model.F ; \ |
466 |
|
cp $(PKG)/autodiff/tangentlinear_model.F \ |
467 |
|
$(PKG)/autodiff/tangentlinear_model.F_old ; \ |
468 |
|
cat tamc_code_ecco_ftl.f >> $(PKG)/autodiff/tangentlinear_model.F |
469 |
|
|
470 |
|
bothchange: adchange ftlchange |
471 |
|
|
472 |
adrestore: |
adrestore: |
473 |
cp $(PKG)/autodiff/adjoint_model.F_template \ |
cp $(PKG)/autodiff/adjoint_model.F_template \ |
474 |
$(PKG)/autodiff/adjoint_model.F |
$(PKG)/autodiff/adjoint_model.F |
475 |
|
|
476 |
tltamc: allcode tlmodeltamc |
ftlrestore: |
477 |
|
cp $(PKG)/autodiff/tangentlinear_model.F_template \ |
478 |
|
$(PKG)/autodiff/tangentlinear_model.F |
479 |
|
|
480 |
|
bothrestore: adrestore ftlrestore |
481 |
|
|
482 |
|
adtamc: adrestore ftlrestore small_f allcode admodeltamc |
483 |
|
|
484 |
|
adtaf: adrestore ftlrestore small_f allcode admodeltaf |
485 |
|
|
486 |
|
ftltamc: adrestore ftlrestore small_f allcode ftlmodeltamc |
487 |
|
|
488 |
|
ftltaf: adrestore ftlrestore small_f allcode ftlmodeltaf |
489 |
|
|
490 |
tltaf: allcode tlmodeltaf |
bothtaf: bothrestore small_f allcode admodeltaf ftlmodeltaf |
491 |
|
|
492 |
adtamc: adrestore allcode admodeltamc |
svdtaf: adrestore ftlrestore small_f allcode svdmodeltaf |
493 |
|
|
|
adtaf: adrestore allcode admodeltaf |
|