Parent Directory
|
Revision Log
|
Revision Graph
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 |