incorporated code review changes

This commit is contained in:
John Tramm 2019-12-05 19:32:12 +00:00
parent 08ce3f4614
commit 428bab4fd2
14 changed files with 82 additions and 79 deletions

View file

@ -128,12 +128,11 @@ std::vector<VolumeCalculation::Result> VolumeCalculation::execute() const
// Sample locations and count hits
#pragma omp for
for (size_t i = i_start; i < i_end; i++) {
uint64_t prn_seed;
int64_t id = iterations * n_samples_ + i;
init_seed(id, &prn_seed, STREAM_VOLUME);
uint64_t seed = init_seed(id, STREAM_VOLUME);
p.n_coord_ = 1;
Position xi {prn(&prn_seed), prn(&prn_seed), prn(&prn_seed)};
Position xi {prn(&seed), prn(&seed), prn(&seed)};
p.r() = lower_left_ + xi*(upper_right_ - lower_left_);
p.u() = {0.5, 0.5, 0.5};