1 |
adcroft |
1.1 |
Example: "4x4 Steady Global Simulation" |
2 |
|
|
======================================= |
3 |
|
|
|
4 |
|
|
To apply the changes to the default configuration of MITgcmUV: |
5 |
|
|
cp ../verification/exp2/code/SIZE.h ../model/inc/ |
6 |
|
|
cp ../verification/exp2/code/CPP_OPTIONS.h ../model/inc/ |
7 |
|
|
cp ../verification/exp2/code/CPP_EEOPTIONS.h ../eesupp/inc/ |
8 |
|
|
|
9 |
|
|
Configure and compile the code: |
10 |
|
|
cd bin |
11 |
|
|
../tools/genmake -makefile |
12 |
|
|
make depend |
13 |
|
|
make |
14 |
|
|
|
15 |
|
|
To run: |
16 |
|
|
cd ../exe |
17 |
|
|
cp ../verification/exp2/input/* . |
18 |
|
|
dmpirun -np 4 mitgcmuv ( Digital ) |
19 |
|
|
|
20 |
|
|
There is comparison output in two directories: |
21 |
|
|
../verification/exp2/results |
22 |
|
|
../verification/exp2/results.oldcode |
23 |
|
|
|
24 |
|
|
To obtain the "oldcode" numbers make the following changes |
25 |
|
|
to the older code: |
26 |
|
|
CPP_OPTIONS.h must have |
27 |
|
|
#define OLD_ADV_BCS |
28 |
|
|
#define OLD_UV_GEOMETRY |
29 |
|
|
calc_mom_rhs.F must have |
30 |
|
|
#undef NO_LATERAL_SLIP |
31 |
|
|
#define NO_BOTTOM_SLIP |
32 |
|
|
|
33 |
|
|
Comments: |
34 |
|
|
The input data is real*4. |