Commit 979ce170 authored by Johan Richard's avatar Johan Richard
Browse files

Display fatal errors in bayes Utils

parent 86b85586
......@@ -77,8 +77,8 @@ void o_prep_mult(int ntmult, struct galaxie *mult)
{
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");
fprintf(stderr, "ERROR: too many images (>%d) in system %s\n",NIMAX-1,multi[k][0].n);
fprintf(stderr,"Please increase the NIMAX parameter in dimension.h\n");
exit(-1);
}
multi[k][++j] = mult[i];
......@@ -98,7 +98,7 @@ void o_prep_mult(int ntmult, struct galaxie *mult)
if ( k >= NFMAX && i < ntmult )
{
NPRINTF(stderr, "ERROR: too many systems in %s (maximum %d)\n",
fprintf(stderr, "ERROR: too many systems in %s (maximum %d)\n",
I.multfile, NFMAX);
exit(-1);
}
......@@ -120,7 +120,7 @@ void o_prep_mult(int ntmult, struct galaxie *mult)
// no single images without redshift
if ( I.mult[i] == 1 && multi[i][0].z == 0 )
{
NPRINTF(stderr, "ERROR: no multiple images in file %s\n",
fprintf(stderr, "ERROR: no multiple images in file %s\n",
I.multfile);
exit(-1);
};
......@@ -165,7 +165,7 @@ void o_prep_mult(int ntmult, struct galaxie *mult)
//checks differences in redshifts in a same system
if(multi[i][j].z!=multi[i][jcheck].z)
{
NPRINTF(stderr, "ERROR: image %s has a different redshift than image %s\n",multi[i][j].n,multi[i][jcheck].n);
fprintf(stderr, "ERROR: image %s has a different redshift than image %s\n",multi[i][j].n,multi[i][jcheck].n);
exit(-1);
}
}
......@@ -243,7 +243,7 @@ void o_prep_mult(int ntmult, struct galaxie *mult)
if ( !matched && l == I.nzlim )
{
NPRINTF(stderr, "ERROR: Image name %s not found in the z_m_limit list\n",
fprintf(stderr, "ERROR: Image name %s not found in the z_m_limit list\n",
multi[i][0].n);
exit(-1);
}
......
Supports Markdown
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