/[MITgcm]/MITgcm_contrib/mlosch/cg2d_sr_bench/input/gendata.m
ViewVC logotype

Annotation of /MITgcm_contrib/mlosch/cg2d_sr_bench/input/gendata.m

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


Revision 1.1 - (hide annotations) (download)
Sun Nov 29 11:02:04 2009 UTC (15 years, 7 months ago) by mlosch
Branch: MAIN
CVS Tags: HEAD
add Christopher Wolfe's benchmark for his implemenation of the single reduction cg2d solver

1 mlosch 1.1 % This is a matlab script that generates the input data
2     % taken from cfpaola
3    
4     % Dimensions of grid
5     NX=1024;
6     NY=1024;
7    
8     % Nominal depth of model (meters)
9     H=2000;
10    
11     ieee='b';
12     accuracy='real*8';
13    
14     % Topog
15     % - channel
16     hbot=-H*ones(NX,NY);
17     % Walls
18     % hbot(:,end)=0;
19     fid=fopen('cg2d_bathy.bin','w',ieee);
20     fwrite(fid,hbot,accuracy);
21     fclose(fid);

  ViewVC Help
Powered by ViewVC 1.1.22