Changeset 3615 in Sophya for trunk/Cosmo/SimLSS/cmvschdist.cc
- Timestamp:
- May 1, 2009, 1:34:31 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Cosmo/SimLSS/cmvschdist.cc
r3344 r3615 17 17 #include <math.h> 18 18 #include <unistd.h> 19 #include "sophyainit.h" 19 20 #include "timing.h" 20 21 #include "histos.h" 21 22 #include "ntuple.h" 23 //#include "randr48.h" 24 #include "randfmt.h" 22 25 #include "srandgen.h" 23 26 #include "perandom.h" … … 46 49 int main(int narg,char *arg[]) 47 50 { 51 SophyaInit(); 48 52 double h75 = 0.71 / 0.75; 49 53 double nstar = 0.006*pow(h75,3.); // … … 62 66 string nametoppf = ""; 63 67 68 // --- Choix du generateur aleatoire (a faire ICI imperativement avant AutoInitRand) 69 FMTRandGen *RandGen = new FMTRandGen; 70 RandGen->SelectGaussianAlgo(C_Gaussian_RandLibSNorm); 71 RandGen->SelectPoissonAlgo(C_Poisson_Ahrens); 72 RandomGeneratorInterface::SetGlobalRandGenP(RandGen); 73 74 // --- decodage des arguments 64 75 char c; 65 76 while((c = getopt(narg,arg,"h0avm:N:n:r:R:W:")) != -1) { … … 99 110 break; 100 111 case 'a' : 101 Auto _Ini_Ranf(5);112 AutoInitRand(5); 102 113 break; 103 114 case 'h' : … … 201 212 } 202 213 214 delete RandGen; 215 203 216 PrtTim("End of Job"); 204 217
Note:
See TracChangeset
for help on using the changeset viewer.