Changeset 26580
- Timestamp:
- 11/09/21 14:22:36 (3 years ago)
- Location:
- issm/trunk-jpl
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/c/solutionsequences/solutionsequence_sampling.cpp
r26579 r26580 18 18 19 19 /*Define seed*/ 20 normal_distribution_rnd distribution;20 //normal_distribution_rnd 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 = distribution.generator();40 rdnumber = 1.0;//distribution.generator(); 41 41 ppf->SetValue(local_indices[i],rdnumber,INS_VAL); 42 42 }
Note:
See TracChangeset
for help on using the changeset viewer.