aboutsummaryrefslogtreecommitdiff
path: root/algorithms
diff options
context:
space:
mode:
authorDavid Phillips <dbphillipsnz@gmail.com>2015-07-24 13:01:44 +1200
committerDavid Phillips <dbphillipsnz@gmail.com>2015-07-24 13:01:44 +1200
commit1ff1618017994332da265be161e8cc548e8b8495 (patch)
treeb3032f360983a4c7153dc94f864091f8679c9b94 /algorithms
parent61d614b804adfc461d98b6c889ca2121407514ad (diff)
downloadfractal-gen-1ff1618017994332da265be161e8cc548e8b8495.tar.xz
Started work on cluster-style parallel processing
Diffstat (limited to 'algorithms')
-rw-r--r--algorithms/mandelbrot.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/algorithms/mandelbrot.c b/algorithms/mandelbrot.c
index 3b10b0a..1c3f5a2 100644
--- a/algorithms/mandelbrot.c
+++ b/algorithms/mandelbrot.c
@@ -40,7 +40,7 @@ void *generate_mandelbrot_section(void *section)
for (y = d->core, b = (d->core*(size_units/d->size)+top); y < d->size; b+=((d->cores*size_units)/d->size), y+=d->cores)
{
- for (x = 0, a = left; x < d->size; a+=(size_units/d->size), x++)
+ for (x = d->clust_id, a = (d->clust_id*(size_units/d->size)+left); x < d->size; a+=((d->clust_total*size_units)/d->size), x+=d->clust_total)
{
z = 0;
c = a+I*b;