Changeset 3615 in Sophya for trunk/Cosmo/SimLSS/cmvobserv3d.cc
- Timestamp:
- May 1, 2009, 1:34:31 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Cosmo/SimLSS/cmvobserv3d.cc
r3594 r3615 7 7 #include <math.h> 8 8 #include <unistd.h> 9 #include "sophyainit.h" 9 10 #include "timing.h" 10 11 #include "ntuple.h" 11 12 #include "matharr.h" 13 #include "randfmt.h" 14 //#include "randr48.h" 15 #include "srandgen.h" 12 16 13 17 #include "constcosmo.h" … … 71 75 int main(int narg,char *arg[]) 72 76 { 77 SophyaInit(); 73 78 InitTim(); 74 79 … … 146 151 system("date -u"); 147 152 153 // --- Choix du generateur aleatoire (a faire ICI imperativement avant AutoInitRand) 154 FMTRandGen *RandGen = new FMTRandGen; 155 RandGen->SelectGaussianAlgo(C_Gaussian_RandLibSNorm); 156 RandGen->SelectPoissonAlgo(C_Poisson_Ahrens); 157 RandomGeneratorInterface::SetGlobalRandGenP(RandGen); 158 159 // --- Decodage des arguments 148 160 char c; 149 161 while((c = getopt(narg,arg,"ha0PWSV2U:G:F:x:y:z:s:Z:M:A:T:N:Q:R:8:O:o:")) != -1) { … … 151 163 switch (c) { 152 164 case 'a' : 153 Auto _Ini_Ranf(5);165 AutoInitRand(5); 154 166 break; 155 167 case '0' : … … 262 274 <<whattowrt[4]<<endl; 263 275 cout<<"rootnameout="<<rootnameout<<endl; 276 ShowRandom(); 277 cout<<" First random is: "<<drand01()<<endl; 264 278 265 279 string tagobs = rootnameout + ".ppf"; … … 772 786 } 773 787 788 //----------------------------------------------------------------- 789 delete RandGen; 774 790 PrtTim(">>>> End Of Job"); 791 775 792 return 0; 776 793 }
Note:
See TracChangeset
for help on using the changeset viewer.