1 |
jmc |
1.2 |
Tutorial Example: "Centennial Time Scale Tracer Injection" |
2 |
|
|
========================================================== |
3 |
jmc |
1.1 |
(formerly "carbon" verification ; |
4 |
|
|
also "tracer_adjoint_sensitivity" in release.1 branch) |
5 |
|
|
|
6 |
|
|
Configure and compile the code: |
7 |
|
|
cd build |
8 |
jmc |
1.2 |
../../../tools/genmake2 -mods ../code_ad [-of my_platform_optionFile] |
9 |
jmc |
1.1 |
make depend |
10 |
|
|
make adall |
11 |
jmc |
1.2 |
cd .. |
12 |
jmc |
1.1 |
|
13 |
|
|
To run: |
14 |
jmc |
1.2 |
cd run |
15 |
jmc |
1.1 |
ln -s ../input_ad/* . |
16 |
jmc |
1.2 |
../input_ad/prepare_run |
17 |
|
|
ln -s ../build/mitgcmuv_ad . |
18 |
|
|
./mitgcmuv_ad > output_adm.txt |
19 |
|
|
cd .. |
20 |
jmc |
1.1 |
|
21 |
|
|
There is comparison output in the directory: |
22 |
jmc |
1.2 |
results/output_adm.txt |
23 |
jmc |
1.1 |
grep for grdchk output: |
24 |
jmc |
1.2 |
grep 'precision_grdchk_result' output_adm.txt |
25 |
jmc |
1.1 |
|
26 |
|
|
Comments: |
27 |
|
|
The input data is real*4 |