Changeset 26600
- Timestamp:
- 11/10/21 18:14:26 (3 years ago)
- Location:
- issm/trunk-jpl
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/c/solutionsequences/solutionsequence_sampling.cpp
r26597 r26600 18 18 19 19 /*Define seed*/ 20 //rnd_normal_distribution distribution;20 rnd_normal_distribution distribution; 21 21 if(seed<0){ 22 22 std::random_device rd; … … 29 29 seed = seed + 783728*my_rank; // change default seed for parallel simulations (by considering an arbitrary shif based on the rank number) 30 30 } 31 //distribution.seed(seed);31 distribution.seed(seed); 32 32 33 33 int *local_indices = NULL; … … 38 38 ppf->GetLocalSize(&M); 39 39 for(int i=0;i<M;i++){ 40 rdnumber = 1.0;//distribution.generator();40 rdnumber = distribution.generator(); 41 41 ppf->SetValue(local_indices[i],rdnumber,INS_VAL); 42 42 }
Note:
See TracChangeset
for help on using the changeset viewer.