Changeset 668 in Sophya for trunk/SophyaLib/SkyT/blackbody.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/blackbody.cc

    r607 r668  
    11//--------------------------------------------------------------------------
    22// File and Version Information:
    3 //      $Id: blackbody.cc,v 1.2 1999-11-20 21:00:47 ansari Exp $
     3//      $Id: blackbody.cc,v 1.3 1999-11-29 14:16:03 ansari Exp $
    44//
    55// Description:
     
    2424//----------------
    2525BlackBody::BlackBody(double temperature)
    26   : RadSpectra(0., 10000.)
     26  : RadSpectra(10., 10000.)
    2727{
    2828  _temperature = temperature;
     
    5757}
    5858
     59void
     60BlackBody::WriteSelf(POutPersist& s) 
     61{
     62  s.PutR8(this->getTemperature());
     63  s.PutR8(this->minFreq());
     64  s.PutR8(this->maxFreq());
     65}
     66
     67void
     68BlackBody::ReadSelf(PInPersist& s) 
     69{
     70  s.GetR8(_temperature);
     71  s.GetR8(_numin);
     72  s.GetR8(_numax);
     73  cout << " Temperature - minFreq - maxFreq " << endl;
     74  cout << _temperature << "-" << _numin << "-" << _numax << endl;
     75}
     76
     77
    5978void
    6079BlackBody::Print(ostream& os) const
Note: See TracChangeset for help on using the changeset viewer.