1 |
|
2 |
16-Oct-2006 |
3 |
heimbach@mit.edu, cnh@mit.edu |
4 |
|
5 |
Brief instructions for building and running |
6 |
|
7 |
------- |
8 |
Exp. 1: For advect diffuse test (injects dye every timestep at one point and advects with a fixed flow field) |
9 |
------- |
10 |
|
11 |
cd build |
12 |
rm -fr * |
13 |
../../../tools/genmake2 -mods ../code |
14 |
make depend |
15 |
make |
16 |
ln -s ../input/* . |
17 |
ln -s ../input_fields/* . |
18 |
./mitgcmuv >& output |
19 |
|
20 |
------- |
21 |
Exp. 2a: Adjoint of advect-diffuse: |
22 |
------- --->>> 1 tile per cube face (32x32), single-processor <<<--- |
23 |
|
24 |
cd build_ad/ |
25 |
rm -fr * |
26 |
\cp -f ../code_ad/topol_32x32/* . |
27 |
../../../tools/genmake2 -mods ../code_ad |
28 |
### ../../../../MITgcm/tools/genmake2 -rootdir ../../../../MITgcm -mods ../code_ad |
29 |
make depend |
30 |
make adtaf |
31 |
make adall |
32 |
|
33 |
ln -s ../input_ad/* . |
34 |
ln -s ../input_fields/* . |
35 |
./mitgcmuv_ad >! output_adm.txt & |
36 |
|
37 |
|
38 |
------- |
39 |
Exp. 2b: Adjoint of advect-diffuse: |
40 |
------- --->>> 4 tiles per cube face (16x16), single-processor <<<--- |
41 |
|
42 |
cd build_ad/ |
43 |
rm -fr * |
44 |
\cp -f ../code_ad/topol_16x16/* . |
45 |
../../../tools/genmake2 -mods ../code_ad |
46 |
### ../../../../MITgcm/tools/genmake2 -rootdir ../../../../MITgcm -mods ../code_ad |
47 |
make depend |
48 |
make adtaf |
49 |
make adall |
50 |
|
51 |
ln -s ../input_ad/* . |
52 |
ln -s ../input/*.bin . |
53 |
ln -s ../input/*.mitgrid . |
54 |
./mitgcmuv_ad >! output_adm.txt & |
55 |
|
56 |
------- |
57 |
Exp. 2c: Adjoint of advect-diffuse: |
58 |
------- --->>> 4 tiles per cube face (16x16), 4-processor MPI <<<--- |
59 |
|
60 |
cd build_ad/ |
61 |
rm -fr * |
62 |
\cp -f ../code_ad/topol_16x16/* . |
63 |
\cp -f SIZE.h_mpi SIZE.h |
64 |
../../../tools/genmake2 -mpi -mods ../code_ad |
65 |
### ../../../../MITgcm/tools/genmake2 -rootdir ../../../../MITgcm -mpi -mods ../code_ad |
66 |
make depend |
67 |
make adtaf |
68 |
make adall |
69 |
|
70 |
ln -s ../input_ad/* . |
71 |
ln -s ../input/*.bin . |
72 |
ln -s ../input/*.mitgrid . |
73 |
mpirun -np 4 ./mitgcmuv_ad |
74 |
|
75 |
------- |
76 |
Exp. 4: Adjoint of full code: |
77 |
------- |
78 |
|
79 |
cd build_ad_full/ |
80 |
rm -fr * |
81 |
../../../tools/genmake2 -mods ../code_ad_full |
82 |
make depend |
83 |
make adtaf |
84 |
make adall |
85 |
|
86 |
ln -s ../input_ad_full/* . |
87 |
./mitgcmuv_ad >! output_adm.txt & |
88 |
|
89 |
------- |
90 |
Exp. 5: TLM of full code: |
91 |
------- |
92 |
|
93 |
cd build_ad_full/ |
94 |
rm -fr * |
95 |
../../../tools/genmake2 -mods ../code_ad_full |
96 |
make depend |
97 |
make ftltaf |
98 |
make ftlall |
99 |
|
100 |
ln -s ../input_ad_full/* . |
101 |
./mitgcmuv_ftl >! output_tlm.txt & |