Changeset 980 in Sophya for trunk/SophyaLib/SkyMap/spherehealpix.cc
- Timestamp:
- Apr 28, 2000, 4:12:44 PM (25 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SophyaLib/SkyMap/spherehealpix.cc
r979 r980 261 261 template<class T> 262 262 SphereHEALPix<T>& SphereHEALPix<T>::Set(const SphereHEALPix<T>& a) 263 263 { 264 264 if (this != &a) 265 265 { 266 267 if (a.NbPixels() < 1) 268 throw RangeCheckError("SphereHEALPix<T>::Set(a ) - Array a not allocated ! "); 269 if (NbPixels() < 1) CloneOrShare(a); 270 else CopyElt(a); 271 272 273 // CloneOrShare(a); 274 if (mInfo_) delete mInfo_; 275 mInfo_ = NULL; 276 if (a.mInfo_) mInfo_ = new DVList(*(a.mInfo_)); 266 267 if (a.NbPixels() < 1) 268 throw RangeCheckError("SphereHEALPix<T>::Set(a ) - Array a not allocated ! "); 269 if (NbPixels() < 1) CloneOrShare(a); 270 else CopyElt(a); 271 272 273 if (mInfo_) delete mInfo_; 274 mInfo_ = NULL; 275 if (a.mInfo_) mInfo_ = new DVList(*(a.mInfo_)); 277 276 } 278 277 return(*this); 279 278 } 280 279 281 280 template<class T> … … 285 284 throw RangeCheckError("SphereHEALPix<T>::CopyElt(const SphereHEALPix<T>& ) - Not Allocated Array ! "); 286 285 if (NbPixels() != a.NbPixels()) 287 throw(SzMismatchError(" TArray<T>::MultElt(const TArray<T>&) SizeMismatch")) ;286 throw(SzMismatchError("SphereHEALPix<T>::CopyElt(const SphereHEALPix<T>&) SizeMismatch")) ; 288 287 nSide_= a.nSide_; 289 288 nPix_ = a.nPix_;
Note:
See TracChangeset
for help on using the changeset viewer.