Changeset 3952 in Sophya for trunk/Cosmo/SimLSS/cmvtuniv.cc
- Timestamp:
- Feb 22, 2011, 4:32:25 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Cosmo/SimLSS/cmvtuniv.cc
r3790 r3952 27 27 <<"cmvtuniv [options] z1,z2"<<endl 28 28 <<" -D dz"<<endl 29 <<" -U h100,om0,or0,ol0,w0 "<<endl29 <<" -U h100,om0,or0,ol0,w0,wa"<<endl 30 30 <<" -F flat(0,1,2)"<<endl 31 31 <<" -I perc,dzinc,dzmax,glorder"<<endl … … 44 44 unsigned short flat = 0; 45 45 // -- WMAP 46 double h100=0.71, om0=0.267804, or0=7.9e-05, ol0=0.73,w0=-1. ;46 double h100=0.71, om0=0.267804, or0=7.9e-05, ol0=0.73,w0=-1.,wa=0.; 47 47 // -- ouvert matter only 48 //double h100=0.71, om0=0.3, or0=0., ol0=0.,w0=-1 .;48 //double h100=0.71, om0=0.3, or0=0., ol0=0.,w0=-1,wa=0..; 49 49 // -- plat matter only 50 //double h100=0.71, om0=1., or0=0., ol0=0.,w0=-1. ; flat = 1;50 //double h100=0.71, om0=1., or0=0., ol0=0.,w0=-1.,wa=0.; flat = 1; 51 51 // -- plat lambda only 52 //double h100=0.71, om0=0., or0=0., ol0=1.,w0=-1. ; flat = 2;52 //double h100=0.71, om0=0., or0=0., ol0=1.,w0=-1.,wa=0.; flat = 2; 53 53 54 54 // -- parametre d'integration … … 70 70 break; 71 71 case 'U' : 72 sscanf(optarg,"%lf,%lf,%lf,%lf,%lf ",&h100,&om0,&or0,&ol0,&w0);72 sscanf(optarg,"%lf,%lf,%lf,%lf,%lf,%lf",&h100,&om0,&or0,&ol0,&w0,&wa); 73 73 break; 74 74 case 'F' : … … 94 94 cout<<"z1="<<z1<<" z2="<<z2<<" dz="<<dz<<endl; 95 95 cout<<"perc="<<perc<<" dzinc="<<dzinc<<" dzmax="<<dzmax<<" glorder="<<glorder<<endl; 96 cout<<"h100="<<h100<<" om0="<<om0<<" or0="<<or0<<" ol0="<<ol0<<" w0="<<w0<<" flat="<<flat<<endl;96 cout<<"h100="<<h100<<" om0="<<om0<<" or0="<<or0<<" ol0="<<ol0<<" w0="<<w0<<" wa="<<wa<<" flat="<<flat<<endl; 97 97 cout<<"todo ="<<todo<<endl; 98 98 99 99 CosmoCalc univ1(flat,true,z2); 100 100 univ1.SetInteg(perc,dzinc,dzmax,glorder); 101 univ1.SetDynParam(h100,om0,or0,ol0,w0 );101 univ1.SetDynParam(h100,om0,or0,ol0,w0,wa); 102 102 univ1.PrtInteg(); 103 103 univ1.Print(); … … 108 108 CosmoCalc univ2(flat,false,z2); 109 109 univ2.SetInteg(perc,dzinc,dzmax,glorder); 110 univ2.SetDynParam(h100,om0,or0,ol0,w0 );110 univ2.SetDynParam(h100,om0,or0,ol0,w0,wa); 111 111 univ2.PrtInteg(); 112 112 univ2.Print(); … … 115 115 else if(todo==3) tstspeed(univ1,z1,z2,dz); 116 116 else if(todo==4) tstntuple(univ1,z1,z2,dz); 117 else if(todo==5) tstinterp(univ1,z1,z2,dz);117 else if(todo==5) tstinterp(univ1,z1,z2,dz); 118 118 else cout<<"Unknown job to be done !!!!! todo="<<todo<<endl; 119 119 … … 215 215 nt.Fill(xnt); 216 216 } 217 217 218 cout<<">>>> Ecriture"<<endl; 219 nt.Info()["flat"] = univ.Flat(); 220 nt.Info()["h100"] = univ.h100(); 221 nt.Info()["Olambda0"] = univ.Olambda0(); 222 nt.Info()["W0"] = univ.W0(); 223 nt.Info()["Wa"] = univ.Wa(); 224 nt.Info()["Omatter0"] = univ.Omatter0(); 225 nt.Info()["Obaryon0"] = univ.Obaryon0(); 226 nt.Info()["Orelat0"] = univ.Orelat0(); 227 nt.Info()["Ocurv0"] = univ.Ocurv0(); 228 nt.Info()["Otot0"] = univ.Otot0(); 229 nt.Info()["ZMax"] = univ.ZMax(); 230 218 231 string tag = "cmvtuniv_nt.ppf"; 219 232 POutPersist pos(tag);
Note:
See TracChangeset
for help on using the changeset viewer.