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