Commit c19f5b56 authored by Johan Richard's avatar Johan Richard
Browse files

Clarify error messages when too many images in a system

parent 65fae439
......@@ -75,6 +75,12 @@ void o_prep_mult(int ntmult, struct galaxie *mult)
if (!indexCmp(mult[i].n, multi[k][0].n))
{
if(j>=NIMAX-2)
{
NPRINTF(stderr, "ERROR: too many images (>%d) in system %s\n",NIMAX-1,multi[k][0].n);
NPRINTF(stderr,"Please increase the NIMAX parameter in dimension.h\n");
exit(-1);
}
multi[k][++j] = mult[i];
I.mult[k] = j + 1;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment