/[MITgcm]/manual/s_examples/barotropic_gyre/input/gendata.m
ViewVC logotype

Contents of /manual/s_examples/barotropic_gyre/input/gendata.m

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


Revision 1.1.1.1 - (show annotations) (download) (vendor branch)
Wed Aug 8 16:15:59 2001 UTC (23 years, 11 months ago) by adcroft
Branch: dummy, MAIN
CVS Tags: checkpoint57l_post, Import, checkpoint01, HEAD
Changes since 1.1: +0 -0 lines
Error occurred while calculating annotation data.
Importing model documentation into CVS

1 ieee='b';
2 accuracy='real*8';
3
4 Ho=5000;
5 nx=60;
6 ny=60;
7
8 % Flat bottom at z=-Ho
9 h=-Ho*ones(nx,ny);
10 % Walls
11 h(end,:)=0;
12 h(:,end)=0;
13 fid=fopen('topog.box','w',ieee); fwrite(fid,h,accuracy); fclose(fid);
14
15 % Wind-stress
16 tauMax=0.1;
17 x=((1:nx)-0.5)/(nx-1); % nx-1 accounts for a solid wall
18 y=((1:ny)-0.5)/(ny-1); % ny-1 accounts for a solid wall
19 [X,Y]=ndgrid(x,y);
20 tau=tauMax*sin(pi*Y);
21 fid=fopen('windx.sin_y','w',ieee); fwrite(fid,tau,accuracy); fclose(fid);

  ViewVC Help
Powered by ViewVC 1.1.22