aboutsummaryrefslogtreecommitdiff
path: root/fractal-gen.c
diff options
context:
space:
mode:
Diffstat (limited to 'fractal-gen.c')
-rw-r--r--fractal-gen.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/fractal-gen.c b/fractal-gen.c
index 612e7ce..9b6b2e2 100644
--- a/fractal-gen.c
+++ b/fractal-gen.c
@@ -221,7 +221,13 @@ int parse_args(int argc, char **argv)
return 1;
}
- /* Interlacing is column-based, can't have more workers than columns */
+ if (clust_id >= clust_total)
+ {
+ fprintf(stderr, "WARN: Node ID cannot be >= node count\n");
+ return 1;
+ }
+
+ /* Interlacing is row-based, can't have more workers than columns */
if (cores > size)
{
cores = size;