5 |
Brief instructions for building and running |
Brief instructions for building and running |
6 |
|
|
7 |
------- |
------- |
8 |
Exp. 1: For diffuse only test (just diffuses a patch of dye) |
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 |
cd build |
12 |
rm -fr * |
rm -fr * |
13 |
../../../tools/genmake2 -mods ../code |
../../../tools/genmake2 -mods ../code |
14 |
make depend |
make depend |
15 |
make |
make |
16 |
ln -s ../input/* . |
ln -s ../input/* . |
17 |
|
ln -s ../input_fields/* . |
18 |
./mitgcmuv >& output |
./mitgcmuv >& output |
19 |
|
|
20 |
------- |
------- |
21 |
Exp. 2: For advect diffuse test (injects dye every timestep at one point and advects with a fixed flow field) |
Exp. 2a: Adjoint of advect-diffuse: |
22 |
------- |
------- --->>> 1 tile per cube face (32x32), single-processor <<<--- |
23 |
|
|
24 |
cd build |
cd build_ad/ |
25 |
rm -fr * |
rm -fr * |
26 |
../../../tools/genmake2 -mods "../code_advdiff ../code" |
\cp -f ../code_ad/topol_32x32/* . |
27 |
|
../../../tools/genmake2 -mods ../code_ad |
28 |
|
### ../../../../MITgcm/tools/genmake2 -rootdir ../../../../MITgcm -mods ../code_ad |
29 |
make depend |
make depend |
30 |
make |
make adtaf |
31 |
ln -s ../input_advdiff/* . |
make adall |
32 |
ln -s ../input/* . |
|
33 |
./mitgcmuv >& output |
ln -s ../input_ad/* . |
34 |
|
ln -s ../input_fields/* . |
35 |
|
./mitgcmuv_ad >! output_adm.txt & |
36 |
|
|
37 |
|
|
38 |
------- |
------- |
39 |
Exp. 3: Adjoint of advect-diffuse: |
Exp. 2b: Adjoint of advect-diffuse: |
40 |
------- |
------- --->>> 4 tiles per cube face (16x16), single-processor <<<--- |
41 |
|
|
42 |
cd build_ad/ |
cd build_ad/ |
43 |
rm -fr * |
rm -fr * |
44 |
|
\cp -f ../code_ad/topol_16x16/* . |
45 |
../../../tools/genmake2 -mods ../code_ad |
../../../tools/genmake2 -mods ../code_ad |
46 |
|
### ../../../../MITgcm/tools/genmake2 -rootdir ../../../../MITgcm -mods ../code_ad |
47 |
make depend |
make depend |
48 |
make adtaf |
make adtaf |
49 |
make adall |
make adall |
50 |
|
|
51 |
ln -s ../input_ad/* . |
ln -s ../input_ad/* . |
52 |
ln -s ../input_advdiff/pickup.0000072020.* . |
ln -s ../input/*.bin . |
53 |
|
ln -s ../input/*.mitgrid . |
54 |
./mitgcmuv_ad >! output_adm.txt & |
./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: |
Exp. 4: Adjoint of full code: |