From 1ff1618017994332da265be161e8cc548e8b8495 Mon Sep 17 00:00:00 2001 From: David Phillips Date: Fri, 24 Jul 2015 13:01:44 +1200 Subject: Started work on cluster-style parallel processing --- algorithms/mandelbrot.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'algorithms') 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; -- cgit v1.1