Changeset 668 in Sophya for trunk/SophyaLib/SkyT/radspecvector.cc
- Timestamp:
- Nov 29, 1999, 3:16:10 PM (26 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SophyaLib/SkyT/radspecvector.cc
r610 r668 1 1 //-------------------------------------------------------------------------- 2 2 // File and Version Information: 3 // $Id: radspecvector.cc,v 1. 3 1999-11-21 23:25:46 ansari Exp $3 // $Id: radspecvector.cc,v 1.4 1999-11-29 14:16:06 ansari Exp $ 4 4 // 5 5 // Description: … … 26 26 // Constructor -- 27 27 //---------------- 28 RadSpectraVec::RadSpectraVec() 29 { 30 } 31 28 32 RadSpectraVec::RadSpectraVec(Vector const & nu, Vector const & fdenu, double numin, double numax) 29 33 : RadSpectra(numin, numax) … … 35 39 _numin = nu(0); 36 40 _numax = nu(nu.NElts()-1); 41 _size = nu.NElts(); 37 42 if(_vecOfNu.NElts() != _vecOfFDeNu.NElts()) cout << "vectors are not compatible" << exit; 38 43 } … … 78 83 } 79 84 85 void 86 RadSpectraVec::WriteSelf(POutPersist& s) 87 { 88 s.PutI4(this->NbElts()); 89 for (int i=0; i< this->NbElts(); i++) 90 { 91 s.PutR8(this->getNuVec(i)); 92 s.PutR8(this->getFNuVec(i)); 93 } 94 s.PutR8(this->minFreq()); 95 s.PutR8(this->maxFreq()); 96 97 } 98 99 void 100 RadSpectraVec::ReadSelf(PInPersist& s) 101 { 102 s.GetI4(_size); 103 104 _vecOfNu.ReSize(_size); 105 _vecOfFDeNu.ReSize(_size); 106 for (int i=0; i< _size; i++) 107 { 108 s.GetR8(_vecOfNu(i)); 109 s.GetR8(_vecOfFDeNu(i)); 110 } 111 s.GetR8(_numin); 112 s.GetR8(_numax); 113 cout << "minFreq - maxFreq"<< endl; 114 cout << _numin<< "-" << _numax << endl; 115 } 116 117 80 118 81 119 void
Note:
See TracChangeset
for help on using the changeset viewer.