From bff810cc371a38f493d688c54f71013f5a7d53bf Mon Sep 17 00:00:00 2001 From: dhuth Date: Wed, 27 Aug 2014 09:52:06 -0600 Subject: Initial commit --- examples/chill/jacobi1.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 examples/chill/jacobi1.c (limited to 'examples/chill/jacobi1.c') diff --git a/examples/chill/jacobi1.c b/examples/chill/jacobi1.c new file mode 100644 index 0000000..0fcaee4 --- /dev/null +++ b/examples/chill/jacobi1.c @@ -0,0 +1,13 @@ +#define N 512 + +int main() { + int i, t; + + float a[N][N]; + + for (t = 2; t <= 100; t++) + for (i = 2; i <= N - 1; i++) + a[t][i] = a[t - 1][i - 1] + a[t - 1][i] + a[t - 1][i + 1]; + + return 0; +} -- cgit v1.2.3-70-g09d2