| 20 |
|
|
| 21 |
1 ===> get MITgcm code from cvs repository |
1 ===> get MITgcm code from cvs repository |
| 22 |
|
|
| 23 |
CVSROOT=:pserver:cvsanon@mitgcm.org:/u/u0/gcmpack |
cvs co -r checkpoint51n_branch MITgcm_code |
| 24 |
cvs login ( CVS password: cvsanon ) |
cvs co -r checkpoint51n_branch MITgcm/verification/testreport |
| 25 |
cvs co -r checkpoint51n_branch MITgcm |
cvs co -r checkpoint51n_branch MITgcm/verification/global_with_exf |
| 26 |
|
|
| 27 |
2 ===> put MITgcm_contrib/ocean_inversion_project in MITgcm directory |
2 ===> put MITgcm_contrib/ocean_inversion_project in MITgcm directory |
| 28 |
|
|
| 31 |
|
|
| 32 |
3 ===> compile and link |
3 ===> compile and link |
| 33 |
|
|
| 34 |
|
mkdir bin exe |
| 35 |
cd bin |
cd bin |
| 36 |
cp ../verification/global_with_exf/code/* . |
\cp ../verification/global_with_exf/code/* . |
| 37 |
cp ../ocean_inversion_project/code/* . |
\cp ../ocean_inversion_project/code/* . |
| 38 |
rm ptracers_*.F PTRACERS_OPTIONS.h |
\rm ptracers_*.F PTRACERS_OPTIONS.h |
| 39 |
../tools/genmake2 |
../tools/genmake2 |
| 40 |
(on orion: ../tools/genmake2 -of linux_ia64_efc+mpi) |
(on orion: ../tools/genmake2 -of linux_ia64_efc+mpi ) |
| 41 |
|
(on columbia: ../tools/genmake2 -of linux_ia64_efc+mpi_altix ) |
| 42 |
make depend |
make depend |
| 43 |
make |
make -j 16 |
| 44 |
|
|
| 45 |
4 ===> execute |
4 ===> execute |
| 46 |
|
|
| 47 |
cd ../exe |
cd ../exe |
| 48 |
cp ../verification/global_with_exf/input/eedata . |
\cp ../verification/global_with_exf/input/eedata . |
| 49 |
cp ../verification/global_with_exf/input/data.* . |
\cp ../verification/global_with_exf/input/data.* . |
| 50 |
cp ../verification/global_with_exf/input/POLY3.COEFFS . |
\cp ../verification/global_with_exf/input/POLY3.COEFFS . |
| 51 |
ln -sf ../verification/global_with_exf/input/*.bin . |
\ln -sf ../verification/global_with_exf/input/*.bin . |
| 52 |
cp ../ocean_inversion_project/input/* . |
\cp ../ocean_inversion_project/input/* . |
| 53 |
cp data.test data |
\cp data.test data |
| 54 |
cp data.ptracers.test data.ptracers |
\cp data.ptracers.test data.ptracers |
| 55 |
mitgcmuv > output.txt |
./mitgcmuv >! output.txt |
| 56 |
|
|
| 57 |
5 ===> check that PTRACER output and salinity output are identical. |
5 ===> check that PTRACER output and salinity output are identical. |
| 58 |
|
|
| 59 |
diff PTRACER01.0000000020.001.001.data S.0000000020.001.001.data |
diff PTRACER01.0000000020.001.001.data S.0000000020.001.001.data |
| 92 |
mpirun -np 24 dplace -s1 mitgcmuv < /dev/null > & ! errlog & |
mpirun -np 24 dplace -s1 mitgcmuv < /dev/null > & ! errlog & |
| 93 |
(on orion: qsub job.orion) |
(on orion: qsub job.orion) |
| 94 |
|
|
| 95 |
|
|
| 96 |
========================================================== |
========================================================== |
| 97 |
MPI instructions for carrying out time-dependent, 1765-2005, |
MPI instructions for carrying out time-dependent, 1765-2005, |
| 98 |
anthropogenic carbon perturbation tracer experiments using |
anthropogenic carbon perturbation tracer experiments using |
| 141 |
cp ../ocean_inversion_project/code/* . |
cp ../ocean_inversion_project/code/* . |
| 142 |
cp PTRACERS_OPTIONS.h.netcdf PTRACERS_OPTIONS.h |
cp PTRACERS_OPTIONS.h.netcdf PTRACERS_OPTIONS.h |
| 143 |
cp ../ocean_inversion_project/write_netCDF/* . |
cp ../ocean_inversion_project/write_netCDF/* . |
| 144 |
|
\rm mk_output.F |
| 145 |
|
|
| 146 |
### need customized option file; example below is for nireas |
### need customized option file; example below is for nireas |
| 147 |
../tools/genmake2 -of linux_ia32_g77_netcdf |
../tools/genmake2 -of linux_ia32_g77_netcdf |
| 161 |
mitgcmuv > output .txt & |
mitgcmuv > output .txt & |
| 162 |
|
|
| 163 |
|
|
| 164 |
====================================================== |
========================================================== |
| 165 |
|
Instructions for carrying out time-dependent, 1765-2005, |
| 166 |
|
anthropogenic carbon perturbation tracer experiments using |
| 167 |
|
the ecco1x1 configuration and netcdf output on columbia. |
| 168 |
|
This assumes that the appropriate libnetcdf.a exists |
| 169 |
|
and that it be specified in the genmake2 option file. |
| 170 |
|
It also assumes that surface forcing files are available |
| 171 |
|
in /nobackup2/menemenl/ocmip/iter69 |
| 172 |
|
========================================================== |
| 173 |
|
|
| 174 |
|
cd MITgcm/exe |
| 175 |
|
\rm * |
| 176 |
|
cd ../bin |
| 177 |
|
\rm * |
| 178 |
|
\cp ../ocean_inversion_project/code_ecco1x1/* . |
| 179 |
|
\cp ../ocean_inversion_project/write_netCDF/* . |
| 180 |
|
\rm mk_output.F |
| 181 |
|
\cp SIZE.h.144 SIZE.h |
| 182 |
|
../tools/genmake2 -of linux_ia64_efc+mpi_altix |
| 183 |
|
make depend |
| 184 |
|
make -j 16 |
| 185 |
|
cd ../exe |
| 186 |
|
\cp ../ocean_inversion_project/input_ecco1x1/* . |
| 187 |
|
ln -sf /nobackup2/menemenl/ocmip/iter69/* . |
| 188 |
|
ln -sf ../ocean_inversion_project/region_mask/30reg_regionmask.bin . |
| 189 |
|
ln -sf ../ocean_inversion_project/takahashi/taka02_montlhy.bin . |
| 190 |
|
ln -sf ../ocean_inversion_project/atm_co2/splco2_cis92a.dat . |
| 191 |
|
qsub job01 |
| 192 |
|
|
| 193 |
|
|
| 194 |
========================================================== |
========================================================== |
| 195 |
Instructions for generating netcdf output files on orion |
Instructions for generating netcdf output files on orion |
| 250 |
end |
end |
| 251 |
end |
end |
| 252 |
plot(1:30,0*sumtracer,1:30,sumtracer) |
plot(1:30,0*sumtracer,1:30,sumtracer) |
| 253 |
|
|
| 254 |
|
|
| 255 |
|
% check that tracer flux is 1e18 mols / year |
| 256 |
|
nb_seconds_per_year=31556880; |
| 257 |
|
lon=2:4:360; lat=-78:4:78; |
| 258 |
|
mask=readbin('hFacC.data',[90 40 15],1); |
| 259 |
|
tracer=zeros(90,40,30); sumtracer=zeros(30,1); |
| 260 |
|
for i=1:30, mydisp(i) |
| 261 |
|
fn=['PtrFlux' myint2str(i) '.0000000180.data']; |
| 262 |
|
tracer(:,:,i)=readbin(fn,[90 40],1); |
| 263 |
|
for j=1:length(lat) |
| 264 |
|
sumtracer(i) = sumtracer(i) + sum(tracer(:,j,i).*mask(:,j,1)) * ... |
| 265 |
|
nb_seconds_per_year* (4*1.113195e+05)^2 * cos(pi*lat(j)/180); |
| 266 |
|
end |
| 267 |
|
end |
| 268 |
|
plot(1:30,0*sumtracer,1:30,sumtracer-mmean(sumtracer)) |