Commit 048a3355 authored by Niklas Schnierstein's avatar Niklas Schnierstein
Browse files

made seed time dependent

parent 44385652
...@@ -54,7 +54,9 @@ ornstein_uhlenbeck_process<rnumber,be>::ornstein_uhlenbeck_process( ...@@ -54,7 +54,9 @@ ornstein_uhlenbeck_process<rnumber,be>::ornstein_uhlenbeck_process(
for(int thread=0;thread<omp_get_max_threads();thread++) for(int thread=0;thread<omp_get_max_threads();thread++)
{ {
int current_seed = assert(omp_get_wtime() != 0);
unsigned int current_seed = omp_get_wtime() *
this->ou_field->clayout->nprocs*omp_get_max_threads() +
this->ou_field->clayout->myrank*omp_get_max_threads() + this->ou_field->clayout->myrank*omp_get_max_threads() +
thread; thread;
gen[thread].seed(current_seed); gen[thread].seed(current_seed);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment