1 |
Tutorial Example: "P coordinate Global Ocean" |
Tutorial Example: "P coordinate Global Ocean" |
2 |
(Global Ocean Simulation at 4o Resolution in Pressure Coordinates) |
(Global Ocean Simulation at 4o Resolution in Pressure Coordinates) |
3 |
================================================================== |
================================================================== |
4 |
(formerly "global_ocean_pressure") |
(formerly "global_ocean_pressure") |
|
|
|
5 |
|
|
6 |
Configure and compile the code: |
Configure and compile the code: |
7 |
cd build |
cd build |
8 |
../../../tools/genmake2 -mods ../code [-of my_platform_optionFile] |
../../../tools/genmake2 -mods ../code [-of my_platform_optionFile] |
9 |
make depend |
make depend |
10 |
make |
make |
11 |
|
cd .. |
12 |
|
|
13 |
To run: |
To run: |
14 |
cd build |
cd run |
15 |
ln -s ../input/* . |
ln -s ../input/* . |
16 |
|
ln -s ../build/mitgcmuv . |
17 |
./mitgcmuv > output.txt |
./mitgcmuv > output.txt |
18 |
|
cd .. |
19 |
|
|
20 |
There is comparison output in the directory: |
There is comparison output in the directory: |
21 |
results/output.txt |
results/output.txt |
22 |
|
|
23 |
Comments: |
Comments: |
24 |
o the set up is similar to that of global_ocean.90x40x15 |
o the set up is similar to that of tutorial_global_oce_latlon |
25 |
o the code directory contains calc_phi_hyd.F, where the potential is computed |
o the code directory contains calc_phi_hyd.F, where the potential is computed |
26 |
according to the more natural finite volume discretization. Finite difference |
according to the more natural finite volume discretization. Finite difference |
27 |
discretization is energy conserving, but the representation of the "fixed" |
discretization is energy conserving, but the representation of the "fixed" |
29 |
o the code directory also contains dynamics.F which calls |
o the code directory also contains dynamics.F which calls |
30 |
remove_mean_rl.F, a generic routine, to remove the mean from the |
remove_mean_rl.F, a generic routine, to remove the mean from the |
31 |
diagnostic variable phiHydLow (sea surface height/gravity in pressure |
diagnostic variable phiHydLow (sea surface height/gravity in pressure |
32 |
coordinates) |
coordinates) |
33 |
|
|
34 |
changes: 07 Feb. 2003 (jmc): |
changes: 07 Feb. 2003 (jmc): |
35 |
o find difficult to maintain the local version of dynamics.F up to date. |
o find difficult to maintain the local version of dynamics.F up to date. |
36 |
therefore, has been remove from the code directory. |
therefore, has been remove from the code directory. |
37 |
One can recover the same version (but up to date) simply |
One can recover the same version (but up to date) simply |
38 |
by activating the commented lines [between lines Cml( and Cml) ], |
by activating the commented lines [between lines Cml( and Cml) ], |
39 |
at the end of the standard version of dynamics.F |
at the end of the standard version of dynamics.F |
40 |
o finite volume form of calc_phi_hyd.F is now a standard option. |
o finite volume form of calc_phi_hyd.F is now a standard option. |