[cig-commits] [commit] master: fix second place that uses old random number generator (40cf921)
cig_noreply at geodynamics.org
cig_noreply at geodynamics.org
Fri Aug 15 11:39:00 PDT 2014
Repository : https://github.com/geodynamics/aspect
On branch : master
Link : https://github.com/geodynamics/aspect/compare/87089066634e9d7af35660b68195b862c2973c44...a3863d7f36991fe70444446b43568d7f7c3c3cd7
>---------------------------------------------------------------
commit 40cf9219f932053eb6f3757f37247d63dcc717d1
Author: Timo Heister <timo.heister at gmail.com>
Date: Fri Aug 15 13:49:54 2014 -0400
fix second place that uses old random number generator
>---------------------------------------------------------------
40cf9219f932053eb6f3757f37247d63dcc717d1
source/particle/generator.cc | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/source/particle/generator.cc b/source/particle/generator.cc
index 4438df8..e499295 100644
--- a/source/particle/generator.cc
+++ b/source/particle/generator.cc
@@ -125,7 +125,7 @@ namespace aspect
for (i=0; i<num_particles; ++i)
{
// Select a cell based on relative volume
- roulette_spin = total_volume*drand48();
+ roulette_spin = total_volume*uniform_distribution_01(random_number_generator);
select_cell = roulette_wheel.lower_bound(roulette_spin)->second;
const typename parallel::distributed::Triangulation<dim>::active_cell_iterator
More information about the CIG-COMMITS
mailing list