/[MITgcm]/MITgcm_contrib/ocean_inversion_project/README
ViewVC logotype

Diff of /MITgcm_contrib/ocean_inversion_project/README

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.4 by dimitri, Wed Sep 24 04:52:38 2003 UTC revision 1.11 by dimitri, Mon Oct 20 06:12:24 2003 UTC
# Line 22  salinity initial and boundary conditions Line 22  salinity initial and boundary conditions
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    
# Line 33  salinity initial and boundary conditions Line 33  salinity initial and boundary conditions
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    
# Line 53  salinity initial and boundary conditions Line 52  salinity initial and boundary conditions
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
# Line 74  integration using the global_ocean.90x40 Line 72  integration using the global_ocean.90x40
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
# Line 88  integration using the global_ocean.90x40 Line 87  integration using the global_ocean.90x40
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
# Line 117  mypcolor( Line 147  mypcolor(
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

Legend:
Removed from v.1.4  
changed lines
  Added in v.1.11

  ViewVC Help
Powered by ViewVC 1.1.22