Changeset 668 in Sophya for trunk/SophyaLib/SkyT/nupower.cc


Ignore:
Timestamp:
Nov 29, 1999, 3:16:10 PM (26 years ago)
Author:
ansari
Message:

Ajout de classes deleguees PPersist et correction integration - Sophie 29/11/99

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/SophyaLib/SkyT/nupower.cc

    r610 r668  
    11//--------------------------------------------------------------------------
    22// File and Version Information:
    3 //      $Id: nupower.cc,v 1.3 1999-11-21 23:25:45 ansari Exp $
     3//      $Id: nupower.cc,v 1.4 1999-11-29 14:16:05 ansari Exp $
    44//
    55// Description:
     
    2424// Constructor --
    2525//----------------
     26PowerLawSpectra::PowerLawSpectra()
     27{
     28}
     29
    2630PowerLawSpectra::PowerLawSpectra(double a, double b, double nu0, double dnu, double numin, double numax)
    2731  : RadSpectra(numin, numax)
     
    4751}
    4852
     53
     54void
     55PowerLawSpectra::WriteSelf(POutPersist& s) 
     56{
     57  s.PutR8(this->giveNorm());
     58  s.PutR8(this->giveNu0());
     59  s.PutR8(this->giveDNu());
     60  s.PutR8(this->giveExp());
     61  s.PutR8(this->minFreq());
     62  s.PutR8(this->maxFreq());
     63}
     64
     65void
     66PowerLawSpectra::ReadSelf(PInPersist& s) 
     67{
     68  s.GetR8(_a);
     69  s.GetR8(_nu0);
     70  s.GetR8(_dnu);
     71  s.GetR8(_b);
     72  s.GetR8(_numin);
     73  s.GetR8(_numax);
     74  cout << " Norm - Nu0 - DNu - Exp - minFreq - maxFreq " << endl;
     75  cout << _a << "-" << _nu0  << "-" << _dnu << "-" << _b << "-" << _numin << "-" << _numax << endl;
     76}
     77
     78
    4979void
    5080PowerLawSpectra::Print(ostream& os) const
Note: See TracChangeset for help on using the changeset viewer.