diff options
author | Derick Huth <derickhuth@gmail.com> | 2015-09-24 11:26:53 -0600 |
---|---|---|
committer | Derick Huth <derickhuth@gmail.com> | 2015-09-24 11:26:53 -0600 |
commit | c285135eb903c31cd221f90f03e288a6b67770cd (patch) | |
tree | 1f6ea3120a09feef7236dac579d5a2d5b774aaa7 /examples/chill/jacobi2.c | |
parent | f5c39e4c6ff55520948c2ef331c968cd84b817d9 (diff) | |
download | chill-c285135eb903c31cd221f90f03e288a6b67770cd.tar.gz chill-c285135eb903c31cd221f90f03e288a6b67770cd.tar.bz2 chill-c285135eb903c31cd221f90f03e288a6b67770cd.zip |
pre-v0.2.1
Diffstat (limited to 'examples/chill/jacobi2.c')
-rw-r--r-- | examples/chill/jacobi2.c | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/examples/chill/jacobi2.c b/examples/chill/jacobi2.c deleted file mode 100644 index b8d8d7b..0000000 --- a/examples/chill/jacobi2.c +++ /dev/null @@ -1,15 +0,0 @@ -#define N 512 - -int main() { - double a[N]; - double b[N]; - int t, i; - for (t = 1; t <= 100; t++) { - for (i = 2; i <= N - 1; i++) - b[i] = (double) 0.25 * (a[i - 1] + a[i + 1]) + (double) 0.5 * a[i]; - - for (i = 2; i <= N - 1; i++) - a[i] = b[i]; - } - return 0; -} |