Changeset 3345 in Sophya for trunk/Cosmo/SimLSS/cmvobserv3d.cc


Ignore:
Timestamp:
Oct 9, 2007, 2:08:31 PM (18 years ago)
Author:
cmv
Message:

test compatibilite relecture fichier SchechterMassDist, cmv 09102007

File:
1 edited

Legend:

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

    r3344 r3345  
    327327 SchechterMassDist schmdist(sch,schmin,schmax,schnpt);
    328328 if(use_schmassdist && schmassdistfile.size()>0) {
    329    cout<<"\nWARNING: SchechterMassDist read from "<<schmassdistfile<<endl
    330        <<"      PLEASE CHECK CONSISTENCY WITH REQUESTED PARAMETERS"<<endl;
     329   cout<<"\nSchechterMassDist read from "<<schmassdistfile<<endl;
    331330   schmdist.ReadPPF(schmassdistfile);
     331   bool compsch = IsCompatible(sch,schmdist.GetSchechter());
     332   double m1,m2; schmdist.GetMassLim(m1,m2);
     333   if( !compsch || fabs(m1-schmin)>1e-4*schmin || fabs(m2-schmax)>1e-4*schmax) {
     334     cout<<"FATAL_ERROR: INCONSISTENT SchechterMassDist file / Schechter or limits"<<endl;
     335     cout<<"Schechter:"<<endl; sch.Print();
     336     cout<<"schmin="<<schmin<<" schmax="<<schmax<<endl;
     337     cout<<"SchechterMassDist:"<<endl; schmdist.Print();
     338     return -10;
     339   }
    332340   recompute_schmassdist = false;
    333341 }
Note: See TracChangeset for help on using the changeset viewer.