From 65a0ded2f4d112afb8ad93d6a83691d1689ab3e7 Mon Sep 17 00:00:00 2001 From: Jan David Mol <mol@astron.nl> Date: Fri, 17 Mar 2017 16:02:47 +0000 Subject: [PATCH] Task #10118: Do not zero all CorrelatedData objects as there is no time, and they will be initialised with zeroes by both GPUProc and OutputProc upon first use --- RTCP/Cobalt/CoInterface/src/CorrelatedData.cc | 16 +++++----------- 1 file changed, 5 insertions(+), 11 deletions(-) diff --git a/RTCP/Cobalt/CoInterface/src/CorrelatedData.cc b/RTCP/Cobalt/CoInterface/src/CorrelatedData.cc index c207e63c260..093e8638049 100644 --- a/RTCP/Cobalt/CoInterface/src/CorrelatedData.cc +++ b/RTCP/Cobalt/CoInterface/src/CorrelatedData.cc @@ -75,7 +75,8 @@ namespace LOFAR [NR_POLARIZATIONS], itsAlignment, allocator, - true), + true, + false), itsNrBytesPerNrValidSamples(nrBytesPerNrValidSamples(maxNrValidSamples)) { init(nrChannels, allocator); @@ -130,26 +131,19 @@ namespace LOFAR case 4: itsNrValidSamples4.resize( boost::extents[itsNrBaselines][nrChannels], - itsAlignment, allocator, true); + itsAlignment, allocator, true, false); break; case 2: itsNrValidSamples2.resize( boost::extents[itsNrBaselines][nrChannels], - itsAlignment, allocator, true); + itsAlignment, allocator, true, false); break; case 1: itsNrValidSamples1.resize( boost::extents[itsNrBaselines][nrChannels], - itsAlignment, allocator, true); + itsAlignment, allocator, true, false); break; } - - // zero weights - for (size_t bl = 0; bl < itsNrBaselines; ++bl) { - for (size_t ch = 0; ch < nrChannels; ++ch) { - setNrValidSamples(bl, ch, 0); - } - } } -- GitLab