Changeset 908 in Sophya for trunk/SophyaLib/SkyMap/spherehealpix.cc
- Timestamp:
- Apr 13, 2000, 3:31:18 PM (25 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SophyaLib/SkyMap/spherehealpix.cc
r906 r908 246 246 void SphereHEALPix<T>::CloneOrShare(const SphereHEALPix<T>& a) 247 247 { 248 string exmsg = "SphereHEALPix<T>::CloneOrShare()";249 if (nSide_ != a.nSide_ )250 {251 cout << " spheres of different sizes " << endl;252 string exmsg = "SphereHEALPix<T>::CloneOrShare()";253 throw( ParmError(exmsg) );254 }255 248 pixels_.CloneOrShare(a.pixels_); 256 249 sliceBeginIndex_.CloneOrShare(a.sliceBeginIndex_); … … 263 256 if (this != &a) 264 257 { 265 CloneOrShare(a);266 258 nSide_= a.nSide_; 267 259 nPix_ = a.nPix_; 268 260 omeg_ = a.omeg_; 261 CloneOrShare(a); 269 262 if (mInfo_) delete mInfo_; 263 mInfo_ = NULL; 270 264 if (a.mInfo_) mInfo_ = new DVList(*(a.mInfo_)); 271 265 }
Note:
See TracChangeset
for help on using the changeset viewer.