35 |
cp ../verification/global_with_exf/code/* . |
cp ../verification/global_with_exf/code/* . |
36 |
cp ../ocean_inversion_project/code/.genmakerc . |
cp ../ocean_inversion_project/code/.genmakerc . |
37 |
cp ../ocean_inversion_project/code/* . |
cp ../ocean_inversion_project/code/* . |
38 |
cp ptracers_forcing.F.test ptracers_forcing.F |
rm ptracers_*.F |
|
rm ptracers_init.F ptracers_forcing.F |
|
39 |
../tools/genmake |
../tools/genmake |
40 |
make depend |
make depend |
41 |
make |
make |
50 |
cp ../ocean_inversion_project/input/* . |
cp ../ocean_inversion_project/input/* . |
51 |
cp data.test data |
cp data.test data |
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 for tracer 1 and tracer 30 |
5 ===> check that PTRACER output and salinity output are identical. |
|
===> is identical to salinity output |
|
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 |
86 |
mitgcmuv > output .txt & |
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 |
|
1 ===> compile, link, and execute |
95 |
|
|
96 |
|
cd MITgcm/exe |
97 |
|
rm * |
98 |
|
cd ../bin |
99 |
|
rm * |
100 |
|
cp ../verification/global_with_exf/code/* . |
101 |
|
cp ../ocean_inversion_project/code/.genmakerc . |
102 |
|
cp ../ocean_inversion_project/code/* . |
103 |
|
cp CPP_EEOPTIONS.h_mpi CPP_EEOPTIONS.h |
104 |
|
cp SIZE.h_mpi SIZE.h |
105 |
|
../tools/genmake |
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 |
|
|
121 |
% some matlab code for looking at fort.10 debug files |
% some matlab code for looking at fort.10 debug files |
130 |
caxis([-6 6]), colorbar, plotland |
caxis([-6 6]), colorbar, plotland |
131 |
|
|
132 |
% some matlab code for looking at PTRACER output files |
% some matlab code for looking at PTRACER output files |
133 |
|
salt=readbin('S.0000000020.001.001.data',[90 40 15],1); |
134 |
tracer=zeros(90,40,15,30); |
tracer=zeros(90,40,15,30); |
135 |
for i=1:30 |
for i=1:30 |
136 |
fn=['PTRACER' myint2str(i) '.0000000020.001.001.data']; |
fn=['PTRACER' myint2str(i) '.0000000020.001.001.data']; |
138 |
clf, mypcolor(tracer(:,:,1,i)'); pause(1) |
clf, mypcolor(tracer(:,:,1,i)'); pause(1) |
139 |
end |
end |
140 |
tmp=sum(tracer,4); clf, mypcolor(tmp(:,:,1)') |
tmp=sum(tracer,4); clf, mypcolor(tmp(:,:,1)') |
141 |
|
mypcolor( |
142 |
|
|
|
% 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]; |
|
|
tracer=zeros(90,40,15,30); sumtracer1=zeros(30,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 |
|
143 |
|
|
144 |
% some matlab code for checking that one year's worth of |
% some matlab code for checking that one year's worth of |
145 |
% tracer uptake is approximately 1e18 mols. |
% tracer uptake is approximately 1e18 mols. |
146 |
lon=2:4:360; lat=-78:4:78; |
lon=2:4:360; lat=-78:4:78; |
147 |
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]; |
148 |
|
mask=readbin('hFacC.001.001.data',[90 40 15],1); |
149 |
tracer=zeros(90,40,15,30); sumtracer=zeros(30,1); |
tracer=zeros(90,40,15,30); sumtracer=zeros(30,1); |
150 |
for i=1:30, mydisp(i) |
for i=1:30, mydisp(i) |
151 |
fn=['PTRACER' myint2str(i) '.0000000180.001.001.data']; |
fn=['PTRACER' myint2str(i) '.0000001800.001.001.data']; |
152 |
tracer(:,:,:,i)=readbin(fn,[90 40 15],1); |
tracer(:,:,:,i)=readbin(fn,[90 40 15],1); |
153 |
for j=1:length(lat) |
for j=1:length(lat) |
154 |
for k=1:length(thk) |
for k=1:length(thk) |
155 |
sumtracer(i) = sumtracer(i) + sum(tracer(:,j,k,i)) * ... |
sumtracer(i) = sumtracer(i) + sum(tracer(:,j,k,i).*mask(:,j,k)) * ... |
156 |
thk(k) * (4*1.113195e+05)^2 * cos(pi*lat(j)/180); |
thk(k) * (4*1.113195e+05)^2 * cos(pi*lat(j)/180); |
157 |
end |
end |
158 |
end |
end |
159 |
end |
end |
160 |
|
plot(1:30,0*sumtracer,1:30,sumtracer) |