1 |
Tutorial Example: "Global Ocean State Estimation" |
Tutorial Example: "Global Ocean State Estimation" |
2 |
(Global Ocean State Estimation at 4.o Resolution) |
(Global Ocean State Estimation at 4.o Resolution) |
3 |
================================================ |
================================================= |
4 |
|
|
5 |
Configure and compile the code: |
Configure and compile the code: |
6 |
cd build |
cd build |
7 |
../../../tools/genmake2 -mods=../code_ad -adof=../code_ad/adjoint_hfluxm [-of my_platform_optionFile] |
../../../tools/genmake2 -mods ../code_ad -adof ../code_ad/ad_optfile.local [-of my_platform_optionFile] |
8 |
make depend |
make depend |
9 |
make adall |
make adall |
10 |
|
cd .. |
11 |
|
|
12 |
To run: |
To run: |
13 |
cd build |
cd run |
14 |
ln -s ../input_ad/* . |
ln -s ../input_ad/* . |
15 |
ln -s ../input/* . |
../input_ad/prepare_run |
16 |
./mitgcmuv_ad > output.txt_adm |
ln -s ../build/mitgcmuv_ad . |
17 |
|
./mitgcmuv_ad > output_adm.txt |
18 |
|
cd .. |
19 |
|
|
20 |
There is comparison output in the directory: |
There is comparison output in the directory: |
21 |
results/output.txt_adm |
results/output_adm.txt |
22 |
|
|
23 |
grep for grdchk output: |
grep for grdchk output: |
24 |
grep 'grdchk output' output_adm.txt |
grep 'grdchk output' output_adm.txt |
25 |
|
|