#include "sopnamsp.h" #include "machdefs.h" #include #include #include #include #include #include "pexceptions.h" #include "constcosmo.h" #include "schechter.h" /////////////////////////////////////////////////////////// //***************** Schechter Functions *****************// /////////////////////////////////////////////////////////// // HI mass function: // see M.Zwaan astroph-0502257 (MNRAS Letters, Volume 359, Issue 1, pp. L30-L34.) // see M.Zwaan astroph-9707109 (ApJ, Volume 509, Issue 2, pp. 687-702.) Schechter::Schechter(double nstar,double mstar,double alpha) : nstar_(nstar) , mstar_(mstar) , alpha_(alpha) , outvalue_(0) { } Schechter::Schechter(Schechter& f) : nstar_(f.nstar_) , mstar_(f.mstar_) , alpha_(f.alpha_) , outvalue_(f.outvalue_) { } Schechter::~Schechter(void) { } void Schechter::SetOutValue(unsigned short outvalue) // outvalue = 0 : give dn/dm // = 1 : give m*dn/dm { if(outvalue>1) { cout<<"Schechter::SetOutValue: Error bad outvalue: "<