Commit 6e8e8add authored by Norby, Tom's avatar Norby, Tom
Browse files

Fix out of bounds exception.

parent d7cac2b3
Pipeline #100417 failed with stages
in 6 minutes and 16 seconds
...@@ -375,14 +375,14 @@ bool SpectrumPCFStream<data_type>::write_to(const std::string &file) const ...@@ -375,14 +375,14 @@ bool SpectrumPCFStream<data_type>::write_to(const std::string &file) const
stream.writeString(" ", 512 - stream.bytesWritten()); stream.writeString(" ", 512 - stream.bytesWritten());
// Write the pairs themselves // Write the pairs themselves
for (size_t column = 0; column < 2; ++column) for (size_t column = 0; column < 20; ++column)
{ {
radix(" "); radix(" ");
for (size_t panel = 0; panel < 8; ++panel) for (size_t panel = 0; panel < 8; ++panel)
{ {
for (size_t mca = 0; mca < 8; ++mca) for (size_t mca = 0; mca < 8; ++mca)
{ {
for (size_t pair = 0; pair < 20; ++pair) for (size_t pair = 0; pair < 2; ++pair)
{ {
stream.writeFloat( stream.writeFloat(
mData->deviationPairEnergies()[column][panel][mca][pair]); mData->deviationPairEnergies()[column][panel][mca][pair]);
......
Markdown is supported
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