Changeset 3952 in Sophya for trunk/Cosmo/SimLSS/cmvtuniv.cc


Ignore:
Timestamp:
Feb 22, 2011, 4:32:25 PM (15 years ago)
Author:
cmv
Message:

ajout evolution de w, cmv 22/02/2011

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Cosmo/SimLSS/cmvtuniv.cc

    r3790 r3952  
    2727 <<"cmvtuniv [options] z1,z2"<<endl
    2828 <<"  -D dz"<<endl
    29  <<"  -U h100,om0,or0,ol0,w0"<<endl
     29 <<"  -U h100,om0,or0,ol0,w0,wa"<<endl
    3030 <<"  -F flat(0,1,2)"<<endl
    3131 <<"  -I perc,dzinc,dzmax,glorder"<<endl
     
    4444 unsigned short flat = 0;
    4545 // -- 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.;
    4747 // -- 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..;
    4949 // -- 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;
    5151 // -- 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;
    5353
    5454 // -- parametre d'integration
     
    7070    break;
    7171  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);
    7373    break;
    7474  case 'F' :
     
    9494 cout<<"z1="<<z1<<"  z2="<<z2<<"  dz="<<dz<<endl;
    9595 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;
    9797 cout<<"todo ="<<todo<<endl;
    9898
    9999 CosmoCalc univ1(flat,true,z2);
    100100 univ1.SetInteg(perc,dzinc,dzmax,glorder);
    101  univ1.SetDynParam(h100,om0,or0,ol0,w0);
     101 univ1.SetDynParam(h100,om0,or0,ol0,w0,wa);
    102102 univ1.PrtInteg();
    103103 univ1.Print();
     
    108108   CosmoCalc univ2(flat,false,z2);
    109109   univ2.SetInteg(perc,dzinc,dzmax,glorder);
    110    univ2.SetDynParam(h100,om0,or0,ol0,w0);
     110   univ2.SetDynParam(h100,om0,or0,ol0,w0,wa);
    111111   univ2.PrtInteg();
    112112   univ2.Print();
     
    115115 else if(todo==3) tstspeed(univ1,z1,z2,dz);
    116116 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);
    118118 else cout<<"Unknown job to be done !!!!!  todo="<<todo<<endl;
    119119
     
    215215   nt.Fill(xnt);
    216216 }
     217
    217218 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
    218231 string tag = "cmvtuniv_nt.ppf";
    219232 POutPersist pos(tag);
Note: See TracChangeset for help on using the changeset viewer.