source: issm/oecreview/Archive/25834-26739/ISSM-26579-26580.diff@ 26740

Last change on this file since 26740 was 26740, checked in by Mathieu Morlighem, 3 years ago

CHG: added 25834-26739

File size: 1.3 KB
RevLine 
[26740]1Index: ../trunk-jpl/src/c/solutionsequences/solutionsequence_sampling.cpp
2===================================================================
3--- ../trunk-jpl/src/c/solutionsequences/solutionsequence_sampling.cpp (revision 26579)
4+++ ../trunk-jpl/src/c/solutionsequences/solutionsequence_sampling.cpp (revision 26580)
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();
32Index: ../trunk-jpl/test/Archives/Archive134.arch
33===================================================================
34Cannot display: file marked as a binary type.
35svn:mime-type = application/octet-stream
Note: See TracBrowser for help on using the repository browser.