mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-27 05:35:49 -04:00
Updated the source routines according to passing seed to prn
This commit is contained in:
parent
55f85b1924
commit
d4835f49ec
1 changed files with 4 additions and 4 deletions
|
|
@ -293,7 +293,7 @@ void initialize_source()
|
|||
#endif
|
||||
|
||||
// load the symbol
|
||||
typedef Particle::Bank (*sample_t)(uint64_t *seed);
|
||||
typedef Particle::Bank (*sample_t)(uint64_t seed);
|
||||
|
||||
// reset errors
|
||||
dlerror();
|
||||
|
|
@ -318,7 +318,7 @@ void initialize_source()
|
|||
uint64_t seed = init_seed(id, STREAM_SOURCE);
|
||||
|
||||
// sample external source distribution
|
||||
simulation::source_bank[i] = sample_source(&seed);
|
||||
simulation::source_bank[i] = sample_source(seed);
|
||||
}
|
||||
// release the library
|
||||
dlclose(source_library);
|
||||
|
|
@ -405,7 +405,7 @@ void fill_source_bank_fixedsource()
|
|||
}
|
||||
|
||||
// load the symbol
|
||||
typedef Particle::Bank (*sample_t)(uint64_t *seed);
|
||||
typedef Particle::Bank (*sample_t)(uint64_t seed);
|
||||
|
||||
// reset errors
|
||||
dlerror();
|
||||
|
|
@ -430,7 +430,7 @@ void fill_source_bank_fixedsource()
|
|||
uint64_t seed = init_seed(id, STREAM_SOURCE);
|
||||
|
||||
// sample external source distribution
|
||||
simulation::source_bank[i] = sample_source(&seed);
|
||||
simulation::source_bank[i] = sample_source(seed);
|
||||
}
|
||||
|
||||
// release the library
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue