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 PTRACERS_OPTIONS.h |
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 |
|
|
52 |
cp data.ptracers.test data.ptracers |
cp data.ptracers.test data.ptracers |
53 |
mitgcmuv > output.txt |
mitgcmuv > output.txt |
54 |
|
|
55 |
5 ===> check that PTRACER output and salinity output |
5 ===> check that PTRACER output and salinity output are identical. |
|
===> are identical. |
|
56 |
|
|
57 |
diff PTRACER01.0000000020.001.001.data S.0000000020.001.001.data |
diff PTRACER01.0000000020.001.001.data S.0000000020.001.001.data |
58 |
diff PTRACER30.0000000020.001.001.data S.0000000020.001.001.data |
diff PTRACER30.0000000020.001.001.data S.0000000020.001.001.data |
63 |
integration using the global_ocean.90x40x15 configuration. |
integration using the global_ocean.90x40x15 configuration. |
64 |
========================================================== |
========================================================== |
65 |
|
|
66 |
1 ===> compile, link, and execute |
cd MITgcm/exe |
67 |
|
rm * |
68 |
|
cd ../bin |
69 |
|
rm * |
70 |
|
cp ../verification/global_with_exf/code/* . |
71 |
|
cp ../ocean_inversion_project/code/.genmakerc . |
72 |
|
cp ../ocean_inversion_project/code/* . |
73 |
|
rm PTRACERS_OPTIONS.h |
74 |
|
../tools/genmake2 |
75 |
|
(on orion: ../tools/genmake2 -of linux_ia64_efc+mpi) |
76 |
|
make depend |
77 |
|
make |
78 |
|
cd ../exe |
79 |
|
cp ../verification/global_with_exf/input/eedata . |
80 |
|
cp ../verification/global_with_exf/input/data.* . |
81 |
|
cp ../verification/global_with_exf/input/POLY3.COEFFS . |
82 |
|
ln -sf ../verification/global_with_exf/input/*.bin . |
83 |
|
cp ../ocean_inversion_project/input/* . |
84 |
|
ln -sf ../ocean_inversion_project/region_mask/30reg_regionmask.bin . |
85 |
|
ln -sf ../ocean_inversion_project/takahashi/taka02_montlhy.bin . |
86 |
|
mitgcmuv > output .txt & |
87 |
|
|
88 |
|
|
89 |
|
========================================================== |
90 |
|
MPI instructions for carrying out a 3000-year quasi-stationary |
91 |
|
integration using the global_ocean.90x40x15 configuration. |
92 |
|
========================================================== |
93 |
|
|
94 |
|
cd MITgcm/exe |
95 |
|
rm * |
96 |
|
cd ../bin |
97 |
|
rm * |
98 |
|
cp ../verification/global_with_exf/code/* . |
99 |
|
cp ../ocean_inversion_project/code/.genmakerc . |
100 |
|
cp ../ocean_inversion_project/code/* . |
101 |
|
rm PTRACERS_OPTIONS.h |
102 |
|
cp CPP_EEOPTIONS.h_mpi CPP_EEOPTIONS.h |
103 |
|
cp SIZE.h_mpi SIZE.h |
104 |
|
../tools/genmake2 |
105 |
|
(on orion: ../tools/genmake2 -of linux_ia64_efc+mpi) |
106 |
|
make depend |
107 |
|
make |
108 |
|
cd ../exe |
109 |
|
cp ../verification/global_with_exf/input/eedata . |
110 |
|
cp ../verification/global_with_exf/input/data.* . |
111 |
|
cp ../verification/global_with_exf/input/POLY3.COEFFS . |
112 |
|
ln -sf ../verification/global_with_exf/input/*.bin . |
113 |
|
cp ../ocean_inversion_project/input/* . |
114 |
|
ln -sf ../ocean_inversion_project/region_mask/30reg_regionmask.bin . |
115 |
|
ln -sf ../ocean_inversion_project/takahashi/taka02_montlhy.bin . |
116 |
|
mpirun -np 36 dplace -s1 -c3-38 mitgcmuv < /dev/null > & ! errlog & |
117 |
|
|
118 |
|
|
119 |
|
========================================================== |
120 |
|
Instructions for carrying out time-dependent, 1765-2005, |
121 |
|
anthropogenic carbon perturbation tracer experiments using |
122 |
|
the global_ocean.90x40x15 configuration. |
123 |
|
========================================================== |
124 |
|
|
125 |
cd MITgcm/exe |
cd MITgcm/exe |
126 |
rm * |
rm * |
129 |
cp ../verification/global_with_exf/code/* . |
cp ../verification/global_with_exf/code/* . |
130 |
cp ../ocean_inversion_project/code/.genmakerc . |
cp ../ocean_inversion_project/code/.genmakerc . |
131 |
cp ../ocean_inversion_project/code/* . |
cp ../ocean_inversion_project/code/* . |
132 |
../tools/genmake |
../tools/genmake2 |
133 |
|
(on orion: ../tools/genmake2 -of linux_ia64_efc+mpi) |
134 |
make depend |
make depend |
135 |
make |
make |
136 |
cd ../exe |
cd ../exe |
139 |
cp ../verification/global_with_exf/input/POLY3.COEFFS . |
cp ../verification/global_with_exf/input/POLY3.COEFFS . |
140 |
ln -sf ../verification/global_with_exf/input/*.bin . |
ln -sf ../verification/global_with_exf/input/*.bin . |
141 |
cp ../ocean_inversion_project/input/* . |
cp ../ocean_inversion_project/input/* . |
142 |
|
cp data.1765-2005 data |
143 |
ln -sf ../ocean_inversion_project/region_mask/30reg_regionmask.bin . |
ln -sf ../ocean_inversion_project/region_mask/30reg_regionmask.bin . |
144 |
ln -sf ../ocean_inversion_project/takahashi/taka02_montlhy.bin . |
ln -sf ../ocean_inversion_project/takahashi/taka02_montlhy.bin . |
145 |
|
ln -sf ../ocean_inversion_project/atm_co2/splco2_cis92a.dat . |
146 |
mitgcmuv > output .txt & |
mitgcmuv > output .txt & |
147 |
|
|
148 |
|
|
175 |
% tracer uptake is approximately 1e18 mols. |
% tracer uptake is approximately 1e18 mols. |
176 |
lon=2:4:360; lat=-78:4:78; |
lon=2:4:360; lat=-78:4:78; |
177 |
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]; |
178 |
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]; |
|
179 |
tracer=zeros(90,40,15,30); sumtracer=zeros(30,1); |
tracer=zeros(90,40,15,30); sumtracer=zeros(30,1); |
180 |
for i=1:30, mydisp(i) |
for i=1:30, mydisp(i) |
181 |
fn=['PTRACER' myint2str(i) '.0000003600.001.001.data']; |
fn=['PTRACER' myint2str(i) '.0000001800.001.001.data']; |
182 |
tracer(:,:,:,i)=readbin(fn,[90 40 15],1); |
tracer(:,:,:,i)=readbin(fn,[90 40 15],1); |
183 |
for j=1:length(lat) |
for j=1:length(lat) |
184 |
for k=1:length(thk) |
for k=1:length(thk) |
185 |
sumtracer(i) = sumtracer(i) + sum(tracer(:,j,k,i)) * ... |
sumtracer(i) = sumtracer(i) + sum(tracer(:,j,k,i).*mask(:,j,k)) * ... |
186 |
thk(k) * (4*1.113195e+05)^2 * cos(pi*lat(j)/180); |
thk(k) * (4*1.113195e+05)^2 * cos(pi*lat(j)/180); |
187 |
end |
end |
188 |
end |
end |