Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
MPIfR-BDG
psrdada_cpp
Commits
cdfb14b8
Commit
cdfb14b8
authored
Aug 27, 2021
by
Tobias Winchen
Browse files
Fix baseline NaN for no heaps in gate
parent
e91ccfae
Changes
1
Hide whitespace changes
Inline
Side-by-side
psrdada_cpp/effelsberg/edd/src/GatedSpectrometer.cu
View file @
cdfb14b8
...
...
@@ -116,8 +116,12 @@ __global__ void update_baselines(float* __restrict__ baseLineG0,
NG1
+=
stats_G1
[
i
];
}
baseLineG0
[
0
]
=
baseLineNG0
[
0
]
/
NG0
;
baseLineG1
[
0
]
=
baseLineNG1
[
0
]
/
NG1
;
if
(
NG0
>
0
)
baseLineG0
[
0
]
=
baseLineNG0
[
0
]
/
NG0
;
if
(
NG1
>
0
)
baseLineG1
[
0
]
=
baseLineNG1
[
0
]
/
NG1
;
baseLineNG0
[
0
]
=
0
;
baseLineNG1
[
0
]
=
0
;
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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