Changeset 3572 in Sophya for trunk/Cosmo/SimLSS/genefluct3d.cc


Ignore:
Timestamp:
Feb 7, 2009, 10:50:34 PM (17 years ago)
Author:
cmv
Message:

char* -> const char* pour regler les problemes de deprecated string const... + comparaison unsigned signed + suppression EVOL_PLANCK rz+cmv 07/02/2009

File:
1 edited

Legend:

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

    r3524 r3572  
    106106                <<" D="<<dx<<","<<dy<<","<<dz<<endl;
    107107 if(nx<=0 || dx<=0.) {
    108    char *bla = "GeneFluct3D::setsize_Error: bad value(s) for nn/dx";
     108   const char *bla = "GeneFluct3D::setsize_Error: bad value(s) for nn/dx";
    109109   cout<<bla<<endl; throw ParmError(bla);
    110110 }
     
    228228 if(kredshref<0.) {
    229229   if(Nz_<=0) {
    230      char *bla = "GeneFluct3D::SetObservator_Error: for kredsh_ref<0 define cube geometry first";
     230     const char *bla = "GeneFluct3D::SetObservator_Error: for kredsh_ref<0 define cube geometry first";
    231231     cout<<bla<<endl; throw ParmError(bla);
    232232   }
     
    265265
    266266 if(cosmo_ == NULL || redsh_ref_<0.) {
    267    char *bla = "GeneFluct3D::LosComRedshift_Error: set Observator and Cosmology first";
     267   const char *bla = "GeneFluct3D::LosComRedshift_Error: set Observator and Cosmology first";
    268268   cout<<bla<<endl; throw ParmError(bla);
    269269 }
     
    561561  else if(array_type==2) nvar = 4;
    562562  else return;
    563   char *vname[4] = {"t","z","re","im"};
     563  const char *vname[4] = {"t","z","re","im"};
    564564  float xnt[4];
    565565  NTuple nt(nvar,vname);
     
    852852
    853853 if(growth_ == NULL) {
    854    char *bla = "GeneFluct3D::ApplyGrowthFactor_Error: set GrowthFactor first";
     854   const char *bla = "GeneFluct3D::ApplyGrowthFactor_Error: set GrowthFactor first";
    855855   cout<<bla<<endl; throw ParmError(bla);
    856856 }
    857857 if(type_evol<1 || type_evol>2) {
    858    char *bla = "GeneFluct3D::ApplyGrowthFactor_Error: bad type_evol value";
     858   const char *bla = "GeneFluct3D::ApplyGrowthFactor_Error: bad type_evol value";
    859859   cout<<bla<<endl; throw ParmError(bla);
    860860 }
    861861
    862862 InterpFunc interpinv(loscom2zred_min_,loscom2zred_max_,loscom2zred_);
    863  unsigned short ok;
     863 //unsigned short ok;
    864864
    865865 //CHECK: Histo hgr(0.9*zred_[0],1.1*zred_[n-1],1000);
     
    14211421 if(type_evol<0) type_evol = 0;
    14221422 if(type_evol>2) {
    1423    char *bla = "GeneFluct3D::AddNoise2Real_Error: bad type_evol value";
     1423   const char *bla = "GeneFluct3D::AddNoise2Real_Error: bad type_evol value";
    14241424   cout<<bla<<endl; throw ParmError(bla);
    14251425 }
     
    14361436   //      Mlim ~ sqrt(DNu) * (Dlum)^2 / Dtrcom
    14371437   if(cosmo_ == NULL || redsh_ref_<0.| loscom2zred_.size()<1) {
    1438      char *bla = "GeneFluct3D::AddNoise2Real_Error: set Observator and Cosmology first";
     1438     const char *bla = "GeneFluct3D::AddNoise2Real_Error: set Observator and Cosmology first";
    14391439     cout<<bla<<endl; throw ParmError(bla);
    14401440   }
Note: See TracChangeset for help on using the changeset viewer.