mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-26 21:25:36 -04:00
Change name of work -> work_per_rank
This commit is contained in:
parent
c049557c85
commit
492d984525
6 changed files with 19 additions and 18 deletions
|
|
@ -264,7 +264,7 @@ void initialize_source()
|
|||
|
||||
} else {
|
||||
// Generation source sites from specified distribution in user input
|
||||
for (int64_t i = 0; i < simulation::work; ++i) {
|
||||
for (int64_t i = 0; i < simulation::work_per_rank; ++i) {
|
||||
// initialize random number seed
|
||||
int64_t id = simulation::total_gen*settings::n_particles +
|
||||
simulation::work_index[mpi::rank] + i + 1;
|
||||
|
|
@ -330,7 +330,7 @@ void free_memory_source()
|
|||
void fill_source_bank_fixedsource()
|
||||
{
|
||||
if (settings::path_source.empty()) {
|
||||
for (int64_t i = 0; i < simulation::work; ++i) {
|
||||
for (int64_t i = 0; i < simulation::work_per_rank; ++i) {
|
||||
// initialize random number seed
|
||||
int64_t id = (simulation::total_gen + overall_generation()) *
|
||||
settings::n_particles + simulation::work_index[mpi::rank] + i + 1;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue