mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-27 13:45:36 -04:00
set seed to make test deteministic
This commit is contained in:
parent
34746926d3
commit
25cfc328d0
1 changed files with 1 additions and 0 deletions
|
|
@ -52,6 +52,7 @@ int main(int argc, char **argv){
|
|||
/*the main particle loop*/
|
||||
particle=&Particle;
|
||||
int i;
|
||||
srand(1234);
|
||||
for (i=0;i<batches*particles; i++){
|
||||
if(i%particles==0){
|
||||
printf("MCPL_test: generating batch number %d\n",i/particles);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue