Skip to content

Commit

Permalink
bug fix
Browse files Browse the repository at this point in the history
Signed-off-by: Vassily Litvinov <[email protected]>
  • Loading branch information
vasslitvinov committed Jan 24, 2025
1 parent 8753374 commit d351696
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/HistogramMsg.chpl
Original file line number Diff line number Diff line change
Expand Up @@ -199,8 +199,9 @@ module HistogramMsg
}

// The result will be here.
var hist = makeDistArray(totNumBins,real);
st.addEntry(rname, createSymEntry(hist));
const histSE = createSymEntry(totNumBins, real);
st.addEntry(rname, histSE);
ref hist = histSE.a;

// 3 different implementations depending on size of histogram
// this is due to the time memory tradeoff between creating one/few atomic arrays
Expand Down

0 comments on commit d351696

Please sign in to comment.