/[MITgcm]/MITgcm_contrib/high_res_cube/eddy_flux/run_calcUVB2_ttcp.m
ViewVC logotype

Annotation of /MITgcm_contrib/high_res_cube/eddy_flux/run_calcUVB2_ttcp.m

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


Revision 1.1 - (hide annotations) (download)
Mon Aug 30 21:50:05 2004 UTC (20 years, 11 months ago) by edhill
Branch: MAIN
 o testing

1 edhill 1.1 %
2     % Ed Hill
3     % Mon Aug 2 23:43:41 EDT 2004
4     %
5    
6     matlab -nojvm -nodisplay
7    
8     clear all ; close all
9    
10     % Get the 1-yr list of days
11     load ilist
12     deltatT = 1200; % model time step size (s)
13     tavefreq = 259200; % averaging period (s)
14     startDate = datenum(1992,1,1); % model integration starting date
15     for iy = 1992:2004
16     fid = fopen(sprintf('ilist_%d.txt',iy),'w');
17     for it = 1:length(ilist)
18     iter = ilist(it);
19     dv = datevec(startDate + (iter*deltatT-tavefreq/2)/60/60/24);
20     newyear = dv(1);
21     if newyear == iy
22     a = sprintf('%10.10d %d',iter,dv(1));
23     fprintf(fid,'%s\n',a);
24     end
25     end
26     fclose(fid);
27     end
28    
29    
30     clear all ; close all
31     nlay = 50;
32     ne = 510;
33    
34     Spat = 'Stave/data/Stave.%10.10d.data';
35     Tpat = 'Ttave/data/Ttave.%10.10d.data';
36     Upat = '_Veltave/data/uVeltave.%10.10d.data';
37     Vpat = '_Veltave/data/vVeltave.%10.10d.data';
38    
39     load ilist
40    
41     calcUVBave(Spat, Tpat, Upat, Vpat, ilist, nlay, ne)
42    
43    
44    
45     #======= split into 4 nodes (3 each) =======
46     cat ilist_199[2-4].txt | awk '{print $1}' > ilist_92--94
47     cat ilist_199[5-7].txt | awk '{print $1}' > ilist_95--97
48     cat ilist_199[89].txt ilist_2000.txt | awk '{print $1}' > ilist_98--00
49     cat ilist_200[1-3].txt | awk '{print $1}' > ilist_01--03
50     wc -l ilist_??--??
51     scp ilist_??--?? ta54:
52    
53     #======= split into 6 nodes (2 each) =======
54     cat ilist_1992.txt ilist_1993.txt | awk '{print $1}' > ilist_40
55     cat ilist_1994.txt ilist_1995.txt | awk '{print $1}' > ilist_41
56     cat ilist_1996.txt ilist_1997.txt | awk '{print $1}' > ilist_42
57     cat ilist_1998.txt ilist_1999.txt | awk '{print $1}' > ilist_43
58     cat ilist_2000.txt ilist_2001.txt | awk '{print $1}' > ilist_44
59     cat ilist_2002.txt ilist_2003.txt | awk '{print $1}' > ilist_45
60     wc -l ilist_4[0-5]
61     scp ilist_4[0-5] ta54:
62    
63    
64     /scratch/edhill/matlab_r13/bin/matlab -nojvm -nodisplay
65    
66     clear all ; close all
67     nlay = 50;
68     ne = 510;
69    
70     Spat = 'c5l/Stave/data/Stave.%10.10d.data';
71     Tpat = 'c5l/Ttave/data/Ttave.%10.10d.data';
72     Upat = 'c5l/_Veltave/data/uVeltave.%10.10d.data';
73     Vpat = 'c5l/_Veltave/data/vVeltave.%10.10d.data';
74     load ilist
75    
76     !/sbin/ifconfig eth0 | grep 'inet addr:' | sed -e 's|\.| |g' | awk '{print $5}' > myip
77     load myip
78     ips = [ myip 201 200 200 200 ]
79    
80     calcUVBave_ttcp(ips, Spat, Tpat, Upat, Vpat, ilist, nlay, ne)
81    
82    
83    
84     % Testing only
85     clear all ; close all
86    
87     nlay = 50;
88     ne = 510;
89     Spat = 'Stave.%10.10d.data';
90     Tpat = 'Ttave.%10.10d.data';
91     Upat = 'uVeltave.%10.10d.data';
92     Vpat = 'vVeltave.%10.10d.data';
93     load ilist
94    
95     ufid = fopen('uVeltave.0000000432.data', 'r', 'ieee-be');
96     vfid = fopen('vVeltave.0000000432.data', 'r', 'ieee-be');
97    
98     % Do the upwind-edge U,V exchanges
99     ucubep1(1,2:njp1,1) = vcube(ni:-1:1,nj,5); % -
100     surf(ucubep1(1:10,:,1)), shading interp, view(2)
101    
102     ucubep1(2:nip1,1,1) = ucube(1:ni,nj,6); % -
103     surf(ucubep1(:,1:10,1)), shading interp, view(2)
104    
105     ucubep1(1,2:njp1,2) = ucube(ni,1:nj,1); % -
106     surf(ucubep1(1:10,:,2)), shading interp, view(2)
107    
108     ucubep1(2:nip1,1,2) = -vcube(ni,nj:-1:1,6); % -
109     surf(ucubep1(:,1:10,2)), shading interp, view(2)
110    
111     ucubep1(1,2:njp1,3) = ucube(ni:-1:1,nj,1); % -
112     surf(ucubep1(1:10,:,3)), shading interp, view(2)
113    
114     ucubep1(2:nip1,1,3) = ones(size( ucube(1:ni,nj,2) ));
115     ucubep1(2:nip1,1,3) = ucube(1:ni,nj,2); % - ?????? +++
116     surf(ucubep1(:,1:5,3)), shading interp, view(2)
117    
118     ucubep1(1,2:njp1,4) = ucube(ni,1:nj,3); % -
119     surf(ucubep1(1:10,:,4)), shading interp, view(2)
120    
121     ucubep1(2:nip1,1,4) = -vcube(ni,nj:-1:1,2); % -
122     surf(ucubep1(:,1:10,4)), shading interp, view(2)
123    
124     ucubep1(1,2:njp1,5) = vcube(ni:-1:1,nj,3); % -
125     surf(ucubep1(1:10,:,5)), shading interp, view(2)
126    
127     ucubep1(2:nip1,1,5) = ucube(1:ni,nj,4); % -
128     surf(ucubep1(:,1:10,5)), shading interp, view(2)
129    
130     ucubep1(1,2:njp1,6) = ucube(ni,1:nj,5); % -
131     surf(ucubep1(1:10,:,6)), shading interp, view(2)
132    
133     ucubep1(2:nip1,1,6) = -vcube(ni,nj:-1:1,4); % -
134     surf(ucubep1(:,1:10,6)), shading interp, view(2)
135    
136    
137     vcubep1(1,2:njp1,1) = -ucube(ni:-1:1,nj,5); % -
138     surf(vcubep1(1:10,:,1)), shading interp, view(2)
139    
140     vcubep1(2:nip1,1,1) = vcube(1:ni,nj,6); % -
141     surf(vcubep1(:,1:10,1)), shading interp, view(2)
142    
143     vcubep1(1,2:njp1,2) = vcube(ni,1:nj,1); % -
144     surf(vcubep1(1:10,:,2)), shading interp, view(2)
145    
146     vcubep1(2:nip1,1,2) = ucube(ni,nj:-1:1,6); % -
147     surf(vcubep1(:,1:10,2)), shading interp, view(2)
148    
149     vcubep1(1,2:njp1,3) = -ucube(ni:-1:1,nj,1); % - ?????? +++
150     surf(vcubep1(1:4,:,3)), shading interp, view(2)
151    
152     vcubep1(2:nip1,1,3) = vcube(1:ni,nj,2); % - ?????? +++
153     surf(vcubep1(:,1:5,3)), shading interp, view(2)
154    
155     vcubep1(1,2:njp1,4) = vcube(ni,1:nj,3); % -
156     surf(vcubep1(1:10,:,4)), shading interp, view(2)
157    
158     vcubep1(2:nip1,1,4) = ucube(ni,nj:-1:1,2); % -
159     surf(vcubep1(:,1:10,4)), shading interp, view(2)
160    
161     vcubep1(1,2:njp1,5) = -ucube(ni:-1:1,nj,3); % -
162     surf(vcubep1(1:10,:,5)), shading interp, view(2)
163    
164     vcubep1(2:nip1,1,5) = vcube(1:ni,nj,4); % -
165     surf(vcubep1(:,1:10,5)), shading interp, view(2)
166    
167     vcubep1(1,2:njp1,6) = vcube(ni,1:nj,5); % -
168     surf(vcubep1(1:10,:,6)), shading interp, view(2)
169    
170     vcubep1(2:nip1,1,6) = ucube(ni,nj:-1:1,4); % -
171     surf(vcubep1(:,1:10,6)), shading interp, view(2)
172    
173    
174    
175     surf()
176    
177     ucubep1(1,2:njp1,1) = vcube(ni:-1:1,nj,5); % -

  ViewVC Help
Powered by ViewVC 1.1.22