--- MITgcm_contrib/ocean_inversion_project/README 2003/09/24 06:50:26 1.5 +++ MITgcm_contrib/ocean_inversion_project/README 2003/10/28 00:27:48 1.14 @@ -22,7 +22,7 @@ CVSROOT=:pserver:cvsanon@mitgcm.org:/u/u0/gcmpack cvs login ( CVS password: cvsanon ) - cvs co MITgcm + cvs co -P MITgcm 2 ===> put MITgcm_contrib/ocean_inversion_project in MITgcm directory @@ -33,11 +33,10 @@ cd bin cp ../verification/global_with_exf/code/* . - cp ../ocean_inversion_project/code/.genmakerc . cp ../ocean_inversion_project/code/* . - rm ptracers_init.F ptracers_forcing_surf.F PTRACERS.h - rm ptracers_read_mask.F ptracers_read_takahashi.F - ../tools/genmake + rm ptracers_*.F PTRACERS_OPTIONS.h + ../tools/genmake2 + (on orion: ../tools/genmake2 -of linux_ia64_efc+mpi) make depend make @@ -57,23 +56,88 @@ diff PTRACER01.0000000020.001.001.data S.0000000020.001.001.data diff PTRACER30.0000000020.001.001.data S.0000000020.001.001.data + diff PTRtave30.0000000020.001.001.data Stave.0000000020.001.001.data + diff PTRtave30.0000000020.001.001.data Stave.0000000020.001.001.data ========================================================== -Instructions for carrying out a 3000-year quasi-stationary +MPI instructions for carrying out a 3000-year quasi-stationary integration using the global_ocean.90x40x15 configuration. ========================================================== -1 ===> compile, link, and execute + cd MITgcm/exe + rm * + cd ../bin + rm * + cp ../verification/global_with_exf/code/* . + cp ../ocean_inversion_project/code/* . + rm PTRACERS_OPTIONS.h + cp CPP_EEOPTIONS.h_mpi CPP_EEOPTIONS.h + cp SIZE.h_mpi SIZE.h + ../tools/genmake2 + (on orion: ../tools/genmake2 -of linux_ia64_efc+mpi) + make depend + make + cd ../exe + cp ../verification/global_with_exf/input/eedata . + cp ../verification/global_with_exf/input/data.* . + cp ../verification/global_with_exf/input/POLY3.COEFFS . + ln -sf ../verification/global_with_exf/input/*.bin . + cp ../ocean_inversion_project/input/* . + ln -sf ../ocean_inversion_project/region_mask/30reg_regionmask.bin . + ln -sf ../ocean_inversion_project/takahashi/taka02_montlhy.bin . + mpirun -np 24 dplace -s1 -c3-38 mitgcmuv < /dev/null > & ! errlog & + + +========================================================== +Instructions for carrying out time-dependent, 1765-2005, +anthropogenic carbon perturbation tracer experiments using +the global_ocean.90x40x15 configuration. +========================================================== + + cd MITgcm/exe + rm * + cd ../bin + rm * + cp ../verification/global_with_exf/code/* . + cp ../ocean_inversion_project/code/* . + ../tools/genmake2 + (on orion: ../tools/genmake2 -of linux_ia64_efc+mpi) + make depend + make + cd ../exe + cp ../verification/global_with_exf/input/eedata . + cp ../verification/global_with_exf/input/data.* . + cp ../verification/global_with_exf/input/POLY3.COEFFS . + ln -sf ../verification/global_with_exf/input/*.bin . + cp ../ocean_inversion_project/input/* . + cp data.1765-2005 data + ln -sf ../ocean_inversion_project/region_mask/30reg_regionmask.bin . + ln -sf ../ocean_inversion_project/takahashi/taka02_montlhy.bin . + ln -sf ../ocean_inversion_project/atm_co2/splco2_cis92a.dat . + mitgcmuv > output .txt & + + +========================================================== +Instructions for carrying out time-dependent, 1765-2005, +anthropogenic carbon perturbation tracer experiments using +global_ocean.90x40x15 configuration and netcdf output. +This assumes that the appropriate libnetcdf.a exists +and that it be specified in the genmake2 option file. +========================================================== cd MITgcm/exe rm * cd ../bin rm * cp ../verification/global_with_exf/code/* . - cp ../ocean_inversion_project/code/.genmakerc . cp ../ocean_inversion_project/code/* . - ../tools/genmake + cp PTRACERS_OPTIONS.h.netcdf PTRACERS_OPTIONS.h + cp ../ocean_inversion_project/write_netCDF/* . + +### need customized option file; example below is for nireas + ../tools/genmake2 -of linux_ia32_g77_netcdf + make depend make cd ../exe @@ -82,8 +146,10 @@ cp ../verification/global_with_exf/input/POLY3.COEFFS . ln -sf ../verification/global_with_exf/input/*.bin . cp ../ocean_inversion_project/input/* . + cp data.1765-2005 data ln -sf ../ocean_inversion_project/region_mask/30reg_regionmask.bin . ln -sf ../ocean_inversion_project/takahashi/taka02_montlhy.bin . + ln -sf ../ocean_inversion_project/atm_co2/splco2_cis92a.dat . mitgcmuv > output .txt & @@ -116,31 +182,14 @@ % 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 - -% 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]; +mask=readbin('hFacC.001.001.data',[90 40 15],1); tracer=zeros(90,40,15,30); sumtracer=zeros(30,1); for i=1:30, mydisp(i) - fn=['PTRACER' myint2str(i) '.0000003600.001.001.data']; + fn=['PTRACER' myint2str(i) '.0000001800.001.001.data']; tracer(:,:,:,i)=readbin(fn,[90 40 15],1); for j=1:length(lat) for k=1:length(thk) - sumtracer(i) = sumtracer(i) + sum(tracer(:,j,k,i)) * ... + sumtracer(i) = sumtracer(i) + sum(tracer(:,j,k,i).*mask(:,j,k)) * ... thk(k) * (4*1.113195e+05)^2 * cos(pi*lat(j)/180); end end