Changeset 3768 in Sophya for trunk/Cosmo/SimLSS/cosmocalc.cc


Ignore:
Timestamp:
May 3, 2010, 4:08:34 PM (15 years ago)
Author:
cmv
Message:
  • refonte du code pour creer uniquement des conditions initiales
  • introduction du tirage des vitesse LOS pour les redshift-distortion

cmv 03/05/2010

File:
1 edited

Legend:

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

    r3749 r3768  
    2121
    2222//----------------------------------------------------------
    23 // flat = 0 : no compute Otot from other
     23// flat = 0 : do not set Otot=1, compute Otot from others
    2424//      = 1 : change Omatter to get Otot=1
    2525//      = 2 : change Olambda to get Otot=1
     
    9696 if(_xspl) delete [] _xspl; _xspl = NULL;
    9797 if(_yspl) delete [] _yspl; _yspl = NULL;
     98}
     99
     100//----------------------------------------------------------
     101// On change le zmax de la cosmologie
     102void CosmoCalc::ChangeZmax(double zmax,double dzinc,double dzmax)
     103{
     104  _zmax = zmax;
     105  if(dzinc<=0. ) dzinc = _dzinc;
     106  if(dzmax<=0.)  dzmax = _dzmax;
     107  cout<<"CosmoCalc::ChangeZmax: zmax="<<_zmax<<" dzinc="<<dzinc<<" dzmax="<<dzmax<<endl;
     108  SetInteg(_dperc,dzinc,_dzmax,_glorder);
    98109}
    99110
Note: See TracChangeset for help on using the changeset viewer.