22 |
|
|
23 |
CVSROOT=:pserver:cvsanon@mitgcm.org:/u/u0/gcmpack |
CVSROOT=:pserver:cvsanon@mitgcm.org:/u/u0/gcmpack |
24 |
cvs login ( CVS password: cvsanon ) |
cvs login ( CVS password: cvsanon ) |
25 |
cvs co MITgcm |
cvs co -P MITgcm |
26 |
|
|
27 |
2 ===> put MITgcm_contrib/ocean_inversion_project in MITgcm directory |
2 ===> put MITgcm_contrib/ocean_inversion_project in MITgcm directory |
28 |
|
|
33 |
|
|
34 |
cd bin |
cd bin |
35 |
cp ../verification/global_with_exf/code/* . |
cp ../verification/global_with_exf/code/* . |
|
cp ../ocean_inversion_project/code/.genmakerc . |
|
36 |
cp ../ocean_inversion_project/code/* . |
cp ../ocean_inversion_project/code/* . |
37 |
rm ptracers_init.F ptracers_forcing_surf.F PTRACERS.h |
rm ptracers_*.F |
38 |
rm ptracers_read_mask.F ptracers_read_takahashi.F |
../tools/genmake2 |
39 |
../tools/genmake |
(on orion: ../tools/genmake2 -of linux_ia64_efc+mpi) |
40 |
make depend |
make depend |
41 |
make |
make |
42 |
|
|
72 |
cp ../verification/global_with_exf/code/* . |
cp ../verification/global_with_exf/code/* . |
73 |
cp ../ocean_inversion_project/code/.genmakerc . |
cp ../ocean_inversion_project/code/.genmakerc . |
74 |
cp ../ocean_inversion_project/code/* . |
cp ../ocean_inversion_project/code/* . |
75 |
../tools/genmake |
../tools/genmake2 |
76 |
|
(on orion: ../tools/genmake2 -of linux_ia64_efc+mpi) |
77 |
make depend |
make depend |
78 |
make |
make |
79 |
cd ../exe |
cd ../exe |
87 |
mitgcmuv > output .txt & |
mitgcmuv > output .txt & |
88 |
|
|
89 |
|
|
90 |
|
========================================================== |
91 |
|
MPI instructions for carrying out a 3000-year quasi-stationary |
92 |
|
integration using the global_ocean.90x40x15 configuration. |
93 |
|
========================================================== |
94 |
|
|
95 |
|
1 ===> compile, link, and execute |
96 |
|
|
97 |
|
cd MITgcm/exe |
98 |
|
rm * |
99 |
|
cd ../bin |
100 |
|
rm * |
101 |
|
cp ../verification/global_with_exf/code/* . |
102 |
|
cp ../ocean_inversion_project/code/.genmakerc . |
103 |
|
cp ../ocean_inversion_project/code/* . |
104 |
|
cp CPP_EEOPTIONS.h_mpi CPP_EEOPTIONS.h |
105 |
|
cp SIZE.h_mpi SIZE.h |
106 |
|
../tools/genmake2 |
107 |
|
(on orion: ../tools/genmake2 -of linux_ia64_efc+mpi) |
108 |
|
make depend |
109 |
|
make |
110 |
|
cd ../exe |
111 |
|
cp ../verification/global_with_exf/input/eedata . |
112 |
|
cp ../verification/global_with_exf/input/data.* . |
113 |
|
cp ../verification/global_with_exf/input/POLY3.COEFFS . |
114 |
|
ln -sf ../verification/global_with_exf/input/*.bin . |
115 |
|
cp ../ocean_inversion_project/input/* . |
116 |
|
ln -sf ../ocean_inversion_project/region_mask/30reg_regionmask.bin . |
117 |
|
ln -sf ../ocean_inversion_project/takahashi/taka02_montlhy.bin . |
118 |
|
mpirun -np 36 dplace -s1 -c3-38 mitgcmuv < /dev/null > & ! errlog & |
119 |
|
|
120 |
|
|
121 |
====================================================== |
====================================================== |
122 |
|
|
123 |
% some matlab code for looking at fort.10 debug files |
% some matlab code for looking at fort.10 debug files |
147 |
% tracer uptake is approximately 1e18 mols. |
% tracer uptake is approximately 1e18 mols. |
148 |
lon=2:4:360; lat=-78:4:78; |
lon=2:4:360; lat=-78:4:78; |
149 |
thk=[50 70 100 140 190 240 290 340 390 440 490 540 590 640 690]; |
thk=[50 70 100 140 190 240 290 340 390 440 490 540 590 640 690]; |
150 |
tracer=zeros(90,40,15,30); sumtracer1=zeros(30,1); |
mask=readbin('hFacC.001.001.data',[90 40 15],1); |
|
for i=1:30, mydisp(i) |
|
|
fn=['PTRACER' myint2str(i) '.0000000180.001.001.data']; |
|
|
tracer(:,:,:,i)=readbin(fn,[90 40 15],1); |
|
|
for x=1:length(lon) |
|
|
for y=1:length(lat) |
|
|
for z=1:length(thk) |
|
|
sumtracer1(i) = sumtracer1(i) + tracer(x,y,z,i) * ... |
|
|
thk(z) * (4*1.113195e+05)^2 * cos(pi*lat(y)/180); |
|
|
end |
|
|
end |
|
|
end |
|
|
end |
|
|
|
|
|
% some matlab code for checking that one year's worth of |
|
|
% tracer uptake is approximately 1e18 mols. |
|
|
lon=2:4:360; lat=-78:4:78; |
|
|
thk=[50 70 100 140 190 240 290 340 390 440 490 540 590 640 690]; |
|
151 |
tracer=zeros(90,40,15,30); sumtracer=zeros(30,1); |
tracer=zeros(90,40,15,30); sumtracer=zeros(30,1); |
152 |
for i=1:30, mydisp(i) |
for i=1:30, mydisp(i) |
153 |
fn=['PTRACER' myint2str(i) '.0000003600.001.001.data']; |
fn=['PTRACER' myint2str(i) '.0000001800.001.001.data']; |
154 |
tracer(:,:,:,i)=readbin(fn,[90 40 15],1); |
tracer(:,:,:,i)=readbin(fn,[90 40 15],1); |
155 |
for j=1:length(lat) |
for j=1:length(lat) |
156 |
for k=1:length(thk) |
for k=1:length(thk) |
157 |
sumtracer(i) = sumtracer(i) + sum(tracer(:,j,k,i)) * ... |
sumtracer(i) = sumtracer(i) + sum(tracer(:,j,k,i).*mask(:,j,k)) * ... |
158 |
thk(k) * (4*1.113195e+05)^2 * cos(pi*lat(j)/180); |
thk(k) * (4*1.113195e+05)^2 * cos(pi*lat(j)/180); |
159 |
end |
end |
160 |
end |
end |