/[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.1 - (show annotations) (download)
Sun Mar 25 22:33:51 2001 UTC (23 years, 1 month ago) by heimbach
Branch: MAIN
CVS Tags: c37_adj
Modifications and additions to enable automatic differentiation.
Detailed info's in doc/notes_c37_adj.txt

1 SHELL = /bin/tcsh
2 RM = rm -f
3 LOC = $(PWD)
4 TAMC = tamc
5 DEST = .
6 SOURCE_CODE = ../bin
7 ADJOINT_SCRIPT = ../adjoint
8 BASE = ..
9 TAMCFLAGS = -adjoint -i4 -r4
10 PKG = $(BASE)/pkg
11
12 DIFF_FLAGS = -module the_main_sens \
13 -input ' xx_theta_dummy \
14 xx_salt_dummy \
15 xx_hflux_dummy \
16 xx_sflux_dummy \
17 xx_tauu_dummy \
18 xx_tauv_dummy \
19 xx_sss_dummy \
20 xx_sst_dummy' \
21 -output 'fc'
22
23 TAMCFLAG = $(TAMCFLAGS) $(DIFF_FLAGS) -l list_uv -admark ad
24
25
26 # Source files for the MITgcmUV
27 SRC_MODEL = $(PKG)/autodiff/read_write.flow \
28 $(PKG)/autodiff/read_write_fld.flow \
29 $(PKG)/autodiff/read_write_rec.flow \
30 $(PKG)/autodiff/cg2d.flow \
31 $(PKG)/autodiff/initialisation.flow \
32 $(PKG)/autodiff/diags.flow \
33 $(PKG)/autodiff/dummy_in_stepping.flow \
34 $(PKG)/autodiff/external_fields_load.flow \
35 $(PKG)/autodiff/eesupp.flow \
36 $(PKG)/autodiff/active_file.flow \
37 $(PKG)/autodiff/write_state.flow \
38 $(PKG)/autodiff/write_time_averages.flow\
39 $(PKG)/autodiff/exch_ad.flow \
40 $(PKG)/autodiff/global_sum_ad.flow \
41 $(PKG)/autodiff/global_max_ad.flow \
42 $(PKG)/autodiff/mdsio.flow \
43 $(PKG)/autodiff/checkpoint.flow \
44 $(PKG)/autodiff/print_message.flow \
45 $(PKG)/autodiff/open_copy_data_file.flow\
46 \
47 $(SOURCE_CODE)/grad_sigma.f \
48 $(SOURCE_CODE)/calc_buoyancy.f \
49 $(SOURCE_CODE)/calc_common_factors.f \
50 $(SOURCE_CODE)/calc_diffusivity.f \
51 $(SOURCE_CODE)/calc_div_ghat.f \
52 $(SOURCE_CODE)/calc_grad_phi_surf.f \
53 $(SOURCE_CODE)/calc_gs.f \
54 $(SOURCE_CODE)/calc_gt.f \
55 $(SOURCE_CODE)/calc_ivdc.f \
56 $(SOURCE_CODE)/calc_mom_rhs.f \
57 $(SOURCE_CODE)/calc_phi_hyd.f \
58 $(SOURCE_CODE)/comm_stats.f \
59 $(SOURCE_CODE)/convect.f \
60 $(SOURCE_CODE)/convective_adjustment.f \
61 $(SOURCE_CODE)/correction_step.f \
62 $(SOURCE_CODE)/cycle_tracer.f \
63 $(SOURCE_CODE)/different_multiple.f \
64 $(SOURCE_CODE)/do_fields_blocking_exchanges.f \
65 $(SOURCE_CODE)/do_the_model_io.f \
66 $(SOURCE_CODE)/dynamics.f \
67 $(SOURCE_CODE)/external_forcing.f \
68 $(SOURCE_CODE)/external_forcing_surf.f \
69 $(SOURCE_CODE)/find_alpha.f \
70 $(SOURCE_CODE)/find_rho.f \
71 $(SOURCE_CODE)/freeze.f \
72 $(SOURCE_CODE)/get_offline_fields.f \
73 $(SOURCE_CODE)/impldiff.f \
74 $(SOURCE_CODE)/ini_cartesian_grid.f \
75 $(SOURCE_CODE)/ini_cg2d.f \
76 $(SOURCE_CODE)/ini_communication_patterns.f \
77 $(SOURCE_CODE)/ini_cori.f \
78 $(SOURCE_CODE)/ini_depths.f \
79 $(SOURCE_CODE)/ini_fields.f \
80 $(SOURCE_CODE)/ini_forcing.f \
81 $(SOURCE_CODE)/ini_grid.f \
82 $(SOURCE_CODE)/ini_masks_etc.f \
83 $(SOURCE_CODE)/ini_procs.f \
84 $(SOURCE_CODE)/ini_psurf.f \
85 $(SOURCE_CODE)/ini_salt.f \
86 $(SOURCE_CODE)/ini_spherical_polar_grid.f \
87 $(SOURCE_CODE)/ini_theta.f \
88 $(SOURCE_CODE)/ini_uvel.f \
89 $(SOURCE_CODE)/ini_vertical_grid.f \
90 $(SOURCE_CODE)/ini_vvel.f \
91 $(SOURCE_CODE)/ini_wvel.f \
92 $(SOURCE_CODE)/initialise_varia.f \
93 $(SOURCE_CODE)/integrate_for_w.f \
94 $(SOURCE_CODE)/modeldata_example.f \
95 $(SOURCE_CODE)/nml_filter.f \
96 $(SOURCE_CODE)/packages_init_variables.f \
97 $(SOURCE_CODE)/plot_field.f \
98 $(SOURCE_CODE)/solve_for_pressure.f \
99 $(SOURCE_CODE)/state_summary.f \
100 $(SOURCE_CODE)/timestep.f \
101 $(SOURCE_CODE)/the_correction_step.f \
102 $(SOURCE_CODE)/the_main_sens.f \
103 $(SOURCE_CODE)/timestep_tracer.f \
104 $(SOURCE_CODE)/swfrac.f \
105 \
106 $(SOURCE_CODE)/kpp_calc.f \
107 $(SOURCE_CODE)/kpp_calc_diff.f \
108 $(SOURCE_CODE)/kpp_do_diags.f \
109 $(SOURCE_CODE)/kpp_init.f \
110 $(SOURCE_CODE)/kpp_open_diags.f \
111 $(SOURCE_CODE)/kpp_routines.f \
112 $(SOURCE_CODE)/kpp_transport_s.f \
113 $(SOURCE_CODE)/kpp_transport_t.f \
114 \
115 $(SOURCE_CODE)/gmredi_calc_diff.f \
116 $(SOURCE_CODE)/gmredi_calc_tensor.f \
117 $(SOURCE_CODE)/gmredi_diags.f \
118 $(SOURCE_CODE)/gmredi_init.f \
119 $(SOURCE_CODE)/gmredi_rtransport.f \
120 $(SOURCE_CODE)/gmredi_slope_limit.f \
121 $(SOURCE_CODE)/gmredi_xtransport.f \
122 $(SOURCE_CODE)/gmredi_ytransport.f \
123 \
124 $(SOURCE_CODE)/ctrl_map_ini.f \
125 $(SOURCE_CODE)/ctrl_map_forcing.f \
126 \
127 $(SOURCE_CODE)/cost_final.f \
128 $(SOURCE_CODE)/cost_init.f \
129 $(SOURCE_CODE)/cost_test.f \
130 \
131
132
133 #--------------------------------------------------------
134 # rules
135 #--------------------------------------------------------
136
137 adcode:
138 cd $(DEST) ; cat $(SRC_MODEL) >! tamc_code_ecco.f
139 admodel:
140 cd $(DEST) ; $(TAMC) $(TAMCFLAG) tamc_code_ecco.f \
141 >! tamc_code_ecco.prot
142
143 adchange:
144 ${ADJOINT_SCRIPT}/adjoint_ecco_sed.com \
145 >! tamc_code_ecco_sed_ad.f ; \
146 cp $(PKG)/autodiff/adjoint_model.F \
147 $(PKG)/autodiff/adjoint_model.F_old ; \
148 cat tamc_code_ecco_sed_ad.f >> $(PKG)/autodiff/adjoint_model.F
149 adrestore:
150 cp $(PKG)/autodiff/adjoint_model.F_template \
151 $(PKG)/autodiff/adjoint_model.F
152 adall: adcode admodel

  ViewVC Help
Powered by ViewVC 1.1.22