Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
LEFEBVREJP email
radix
Commits
6e8e8add
Commit
6e8e8add
authored
May 06, 2020
by
Norby, Tom
Browse files
Fix out of bounds exception.
parent
d7cac2b3
Pipeline
#100417
failed with stages
in 6 minutes and 16 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
radixio/spectrumpcfstream.i.hh
View file @
6e8e8add
...
...
@@ -375,14 +375,14 @@ bool SpectrumPCFStream<data_type>::write_to(const std::string &file) const
stream
.
writeString
(
" "
,
512
-
stream
.
bytesWritten
());
// Write the pairs themselves
for
(
size_t
column
=
0
;
column
<
2
;
++
column
)
for
(
size_t
column
=
0
;
column
<
2
0
;
++
column
)
{
radix
(
" "
);
for
(
size_t
panel
=
0
;
panel
<
8
;
++
panel
)
{
for
(
size_t
mca
=
0
;
mca
<
8
;
++
mca
)
{
for
(
size_t
pair
=
0
;
pair
<
2
0
;
++
pair
)
for
(
size_t
pair
=
0
;
pair
<
2
;
++
pair
)
{
stream
.
writeFloat
(
mData
->
deviationPairEnergies
()[
column
][
panel
][
mca
][
pair
]);
...
...
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