/[MITgcm]/MITgcm_contrib/eh3/llc/gwave_llc_eg_1deg/input/gendata.m
ViewVC logotype

Annotation of /MITgcm_contrib/eh3/llc/gwave_llc_eg_1deg/input/gendata.m

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


Revision 1.1 - (hide annotations) (download)
Fri Jun 16 13:47:19 2006 UTC (19 years, 4 months ago) by edhill
Branch: MAIN
initial check-in of a nominally 1-deg lat-lon-cap setup for
  ecco-godae -- it runs for a dozen timesteps and has a severe
  problem with the corners

1 edhill 1.1 snx=90;
2     sny=90;
3    
4     t0=zeros(snx,sny);
5     tb=t0;
6    
7     x = [1:snx]-.5-snx/2;
8     y = [1:sny]-.5-sny/2;
9    
10     [xx,yy]=meshgrid(x,y);
11    
12     a = 1;
13     sigma=10;
14    
15     tb = a*exp(-.5*(xx.^2+yy.^2)/sigma);
16    
17     % mit_writefield('ssh.bump',tb,'real*8');
18     % mit_writefield('ssh.flat',t0,'real*8');
19    
20     fid = fopen('ssh.bump', 'w', 'ieee-be');
21     fwrite(fid,tb,'real*8',0,'ieee-be');
22     fclose(fid);
23    
24     fid = fopen('ssh.flat', 'w', 'ieee-be');
25     fwrite(fid,t0,'real*8',0,'ieee-be');
26     fclose(fid);
27    
28    

  ViewVC Help
Powered by ViewVC 1.1.22