Changeset 1954 in Sophya for trunk/SophyaLib/SkyMap/fiospherehealpix.cc
- Timestamp:
- Mar 28, 2002, 2:10:57 PM (24 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SophyaLib/SkyMap/fiospherehealpix.cc
r1624 r1954 4 4 #include "pexceptions.h" 5 5 #include "fiondblock.h" 6 #include "datatype.h" 7 #include <typeinfo> 6 8 7 9 //******************************************************************* … … 55 57 { 56 58 SphereHEALPix<T> * po = dynamic_cast< SphereHEALPix<T> * >(&o); 57 if (po == NULL) return; 59 if (po == NULL) { 60 char buff[160]; 61 sprintf(buff,"FIO_SphereHEALPix<%s>::SetDataObj(%s) - Object type error ! ", 62 DataTypeInfo<T>::getTypeName().c_str(), typeid(o).name()); 63 throw TypeMismatchExc(PExcLongMessage(buff)); 64 } 58 65 if (ownobj && dobj_) delete dobj_; 59 66 dobj_ = po; ownobj = false; … … 93 100 is.GetR8(Omega); 94 101 dobj_->setParameters(nSide,nPix, Omega); 95 102 cout << " DBG-FIO_SphereHEALPix<T> nSide=" << nSide << " nPix=" << nPix << endl; 96 103 // On lit les DataBlocks; 97 104 FIO_NDataBlock<T> fio_nd(&dobj_->pixels_); … … 101 108 FIO_NDataBlock<int_4> fio_ndi2(&dobj_->sliceLenght_); 102 109 fio_ndi2.Read(is); 110 111 cout << " DBG-2 SizeIndex()= " << dobj_->SizeIndex() 112 << " NbPixels()= " << dobj_->NbPixels() << endl; 103 113 } 104 114
Note:
See TracChangeset
for help on using the changeset viewer.