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


Ignore:
Timestamp:
Jul 29, 2007, 9:01:31 PM (18 years ago)
Author:
cmv
Message:

update logique Init_Spline de CosmoCalc cmv 29/07/07

File:
1 edited

Legend:

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

    r3248 r3285  
    4242 cout<<"z1="<<z1<<"  z2="<<z2<<"  dz="<<dz<<endl;
    4343
    44  double perc=0.01,dzinc=-1.,dzmax=5.; unsigned short glorder=4;
     44 double perc=0.01,dzinc=-1.,dzmax=-1.; unsigned short glorder=4;
    4545 if(narg>2) sscanf(arg[2],"%lf,%lf,%lf,%hu",&perc,&dzinc,&dzmax,&glorder);
    46  if(dzinc<=0.) dzinc = dz/2.;
    4746 cout<<" perc="<<perc<<" dzinc="<<dzinc<<" dzmax="<<dzmax<<" glorder="<<glorder<<endl;
    4847
     
    5049 univ.SetInteg(perc,dzinc,dzmax,glorder);
    5150 univ.SetDynParam(h100,om0,or0,ol0,w0);
     51 univ.PrtInteg();
    5252 univ.Print();
    5353
     
    5555 univ1.SetInteg(perc,dzinc,dzmax,glorder);
    5656 univ1.SetDynParam(h100,om0,or0,ol0,w0);
     57 univ1.PrtInteg();
    5758 univ1.Print();
    5859
     
    202203 vector<double> Dinterp;
    203204 double zmin = Z[0], zmax = Z[0];
    204  for(int i=0;i<Z.size();i+=ninc) {
     205 for(unsigned int i=0;i<Z.size();i+=ninc) {
    205206   Dinterp.push_back(D[i]);
    206207   zmax = Z[i];
     
    214215 double xnt[n];
    215216   
    216  for(int i=0;i<Z.size();i++) {
     217 for(unsigned int i=0;i<Z.size();i++) {
    217218   if(Z[i]>zmax) break;
    218219   xnt[0] = Z[i];
Note: See TracChangeset for help on using the changeset viewer.