Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Lenstool
Lenstool
Commits
979ce170
Commit
979ce170
authored
Mar 02, 2019
by
Johan Richard
Browse files
Display fatal errors in bayes Utils
parent
86b85586
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/o_prep_mult.c
View file @
979ce170
...
...
@@ -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
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment