Rev | Line | |
---|
[26740] | 1 | Index: ../trunk-jpl/src/c/solutionsequences/solutionsequence_sampling.cpp
|
---|
| 2 | ===================================================================
|
---|
| 3 | --- ../trunk-jpl/src/c/solutionsequences/solutionsequence_sampling.cpp (revision 26581)
|
---|
| 4 | +++ ../trunk-jpl/src/c/solutionsequences/solutionsequence_sampling.cpp (revision 26582)
|
---|
| 5 | @@ -17,7 +17,7 @@
|
---|
| 6 | double rdnumber;
|
---|
| 7 |
|
---|
| 8 | /*Define seed*/
|
---|
| 9 | - normal_distribution_rnd distribution;
|
---|
| 10 | + //normal_distribution_rnd distribution;
|
---|
| 11 | if(seed<0){
|
---|
| 12 | std::random_device rd;
|
---|
| 13 | seed = rd();
|
---|
| 14 | @@ -28,7 +28,7 @@
|
---|
| 15 | ISSM_MPI_Comm_rank(ISSM_MPI_COMM_WORLD,&my_rank);
|
---|
| 16 | seed = seed + 783728*my_rank; // change default seed for parallel simulations (by considering an arbitrary shif based on the rank number)
|
---|
| 17 | }
|
---|
| 18 | - distribution.seed(seed);
|
---|
| 19 | + //distribution.seed(seed);
|
---|
| 20 |
|
---|
| 21 | int *local_indices = NULL;
|
---|
| 22 | IssmDouble *local_vector = NULL;
|
---|
| 23 | @@ -37,7 +37,7 @@
|
---|
| 24 | int M;
|
---|
| 25 | ppf->GetLocalSize(&M);
|
---|
| 26 | for(int i=0;i<M;i++){
|
---|
| 27 | - rdnumber = distribution.generator();
|
---|
| 28 | + rdnumber = 1.0;//distribution.generator();
|
---|
| 29 | ppf->SetValue(local_indices[i],rdnumber,INS_VAL);
|
---|
| 30 | }
|
---|
| 31 | ppf->Assemble();
|
---|
| 32 | Index: ../trunk-jpl/test/Archives/Archive134.arch
|
---|
| 33 | ===================================================================
|
---|
| 34 | Cannot display: file marked as a binary type.
|
---|
| 35 | svn:mime-type = application/octet-stream
|
---|
Note:
See
TracBrowser
for help on using the repository browser.