Skip to content

Commit

Permalink
fixed local index
Browse files Browse the repository at this point in the history
  • Loading branch information
lcgraham committed May 11, 2016
1 parent b6efc02 commit 0eb3931
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions bet/calculateP/calculateP.py
Original file line number Diff line number Diff line change
Expand Up @@ -432,6 +432,7 @@ def exact_volume_1D(samples, input_domain, distribution='uniform', a=None,
# Set up local arrays for parallelism
local_index = np.array_split(np.arange(samples.shape[0]),
comm.size)[comm.rank]
local_index = np.array(local_index, dtype='int64')
lam_vol_local = lam_vol[local_index]

return (lam_vol, lam_vol_local, local_index)
Expand Down

0 comments on commit 0eb3931

Please sign in to comment.