-rw-r--r-- | templates/vegas-defs.lua.in | 6 |
diff --git a/templates/vegas-defs.lua.in b/templates/vegas-defs.lua.in index afce303a..9bd24b99 100644 --- a/templates/vegas-defs.lua.in +++ b/templates/vegas-defs.lua.in @@ -139,9 +139,9 @@ end -- keep track of the squared function value in each bin -- to later refine the grid local function accumulate_distribution(fsq) -# for i=0, N-1 do - d[$(i)][bin[$(i)]] = d[$(i)][bin[$(i)]] + fsq -# end + for i=0, $(N-1) do + d[i][bin[i]] = d[i][bin[i]] + fsq + end end -- clear the results, but keep the grid |