Next: 3.18.5 Running the estimation
Up: 3.18 Global Ocean State
Previous: 3.18.3 Code Configuration
Contents
Subsections
The optimization experiment requires two executables: 1) the
MITgcm and its adjoints (itmitgcmuv_ad) and 2) the line-search
algorithm (optim.x)
Before compiling, first note that, in the directory code_ad/, two files
must be updated:
- code_ad_diff.list which lists new subroutines to be compiled
by the TAF software (cost_temp.f and cost_hflux.f here),
- the adjoint_hfluxm files which provides a list of the control variables
and the name of cost function to the TAF sotware.
Then, in the directory build_ad/, type:
% ../../../tools/genmake2 -mods=../code\_ad -adof=../code\_ad/adjoint\_hfluxm
% make depend
% make adall
to generate the MITgcm executable mitgcmuv_ad
This is done from the directories lsopt/ and optim/ (under MITgcm/)
In lsopt/, unzip the blash1 library you need, and change accordingly the
library in the Makefile. Compile with:
% make all
(more details in lsopt_doc.txt)
In optim/, the path of the directory where mitgcm_ad was compliled must be specified
in the Makefile in the variable INCLUDEDIRS. The file name of the controle variable
(xx_hfluxm_file here) must be added to the namelist read by optim_num.F
Then use
% make depend
and
% make
to generate the line-search executable optim.x.
Next: 3.18.5 Running the estimation
Up: 3.18 Global Ocean State
Previous: 3.18.3 Code Configuration
Contents
mitgcm-support@mitgcm.org
| Copyright © 2006
Massachusetts Institute of Technology |
 |
|