Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Vesa Oikonen
tpcclib
Commits
01d0acfc
Commit
01d0acfc
authored
Jan 30, 2021
by
Vesa Oikonen
Browse files
refined k range is checked to actually be a range
parent
0e1b2ad8
Changes
1
Hide whitespace changes
Inline
Side-by-side
v2/tacfits/fit_dexp.c
View file @
01d0acfc
...
...
@@ -360,6 +360,8 @@ int main(int argc, char **argv)
fprintf
(
stderr
,
"Error: %s
\n
"
,
errorMsg
(
status
.
error
));
tacFree
(
&
tac
);
return
(
3
);
}
if
(
kmax
<
2
.
0
*
kmin
)
{
kmax
=
2
.
0
*
kmin
;
kmin
*=
0
.
5
;}
if
(
verbose
>
2
)
printf
(
" refined kmin := %g
\n
kmax := %g
\n
"
,
kmin
,
kmax
);
ret
=
spectralDExp
(
tac
.
x
,
tac
.
c
[
0
].
y
,
tac
.
w
,
tac
.
sampleNr
,
kmin
,
kmax
,
bfNr
,
pk
,
pa
,
yfit
,
&
status
);
if
(
ret
!=
TPCERROR_OK
)
{
...
...
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