1 |
Example: "4x4 Steady Global Simulation" |
Example: "4 Layer Double Gyre" |
2 |
======================================= |
============================== |
3 |
|
|
4 |
To apply the changes to the default configuration of MITgcmUV: |
To apply the changes to the default configuration of MITgcmUV: |
5 |
cd bin |
cp ../verification/exp1/code/SIZE.h ../model/inc/ |
6 |
ln -s ../verification/exp2/code/SIZE.h ../bin/ |
cp ../verification/exp1/code/CPP_OPTIONS.h ../model/inc/ |
7 |
ln -s ../verification/exp2/code/CPP_OPTIONS.h ../bin/ |
cp ../verification/exp1/code/CPP_EEOPTIONS.h ../eesupp/inc/ |
|
ln -s ../verification/exp2/code/CPP_EEOPTIONS.h ../bin/ |
|
|
ln -s ../verification/exp2/code/external_fields_load.F ../bin/ |
|
8 |
|
|
9 |
Configure and compile the code: |
Configure and compile the code: |
10 |
cd ../bin |
cd bin |
11 |
../tools/genmake -makefile |
../tools/genmake -makefile |
12 |
make depend |
make depend |
13 |
make |
make |
14 |
|
|
15 |
To run: |
To run: |
16 |
cd ../exe |
cd ../exe |
17 |
cp ../verification/exp2/input/* . |
cp ../verification/exp1/input/* . |
18 |
dmpirun -np 4 mitgcmuv ( Digital ) |
dmpirun -np 4 mitgcmuv ( Digital ) |
19 |
|
|
20 |
There is comparison output in two directories: |
There is comparison output in two directories: |
21 |
../verification/exp2/results |
../verification/exp1/results |
22 |
../verification/exp2/results.oldcode |
../verification/exp1/results.oldcode |
23 |
|
|
24 |
To obtain the "oldcode" numbers make the following changes |
To obtain the "oldcode" numbers make the following changes |
25 |
to the older code: |
to the older code: |
27 |
#define OLD_ADV_BCS |
#define OLD_ADV_BCS |
28 |
#define OLD_UV_GEOMETRY |
#define OLD_UV_GEOMETRY |
29 |
calc_mom_rhs.F must have |
calc_mom_rhs.F must have |
30 |
#undef NO_LATERAL_SLIP |
#define NO_LATERAL_SLIP |
31 |
#define NO_BOTTOM_SLIP |
#define NO_BOTTOM_SLIP |
32 |
|
ini_depths.F must have the "island" removed. |
33 |
|
|
34 |
Comments: |
Comments: |
35 |
The input data is real*4. |
The input data is real*8 and can be generated with the supplied |
36 |
|
matlab script gendata.m to change the input precision to |
37 |
|
real*4 change readBinaryPrec=32 in data as well as in gendata.m |