X-Git-Url: http://git.tremily.us/?p=parallel_computing.git;a=blobdiff_plain;f=src%2Fplot_image%2Fgen_data_sharp.c;fp=src%2Fplot_image%2Fgen_data_sharp.c;h=9e7e6d9c830fab4bf703b5beea9cfee351fea7d1;hp=c0abf3e14161296ee2ef8c1d6d61b99b2baceabf;hb=6b4a3b74342c9f6921fef27a57a577564a54cb15;hpb=68c095834b5dbd9813f95829777264946af738f9 diff --git a/src/plot_image/gen_data_sharp.c b/src/plot_image/gen_data_sharp.c index c0abf3e..9e7e6d9 100644 --- a/src/plot_image/gen_data_sharp.c +++ b/src/plot_image/gen_data_sharp.c @@ -1,19 +1,21 @@ #include #include -#define N_X 300 -#define N_Y 200 +#define N_X 200 +#define N_Y 100 main() { int i, j; double x, y, value; + printf("# x\ty\tz\n"); + for (j = 0; j < N_Y; j++) for (i = 0; i < N_X; i++) { value = 0.0; if (j > N_Y / 2) value = 1.5; - printf("%f\n", value); + printf("%d\t%d\t%f\n", i, j, value); } }