mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-28 06:05:58 -04:00
incorporated code review changes
This commit is contained in:
parent
08ce3f4614
commit
428bab4fd2
14 changed files with 82 additions and 79 deletions
|
|
@ -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};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue