Changeset 2445
- Timestamp:
- 03/29/12 12:37:19 (13 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/CMakeLists.txt
r2417 r2445 15 15 message( STATUS "USE_LIBCASACORE = " ${USE_LIBCASACORE} ) 16 16 message( STATUS "STANDALONE = " ${STANDALONE} ) 17 18 # Use casapy's fork of casacore 19 if ( NOT STANDALONE ) 20 add_definitions( -DUSE_CASAPY ) 21 endif () 17 22 18 23 # Define compiler paths on OSX 10.5. This must be done before invoking project() … … 42 47 # default is RelWithDebInfo 43 48 # 49 50 44 51 if ( NOT CMAKE_BUILD_TYPE ) 45 52 set( CMAKE_BUILD_TYPE RelWithDebInfo ) -
trunk/src/STFitter.cpp
r2444 r2445 118 118 g = dynamic_cast<Gaussian1D<Float>* >(funcs_[i]); 119 119 if (g) { 120 #ifdef USE_CASAPY 121 const GaussianSpectralElement *gauss = 122 dynamic_cast<const GaussianSpectralElement *>(listGauss[i]) ; 123 (*g)[0] = gauss->getAmpl(); 124 (*g)[1] = gauss->getCenter(); 125 (*g)[2] = gauss->getFWHM(); 126 #else 120 127 (*g)[0] = listGauss[i].getAmpl(); 121 128 (*g)[1] = listGauss[i].getCenter(); 122 129 (*g)[2] = listGauss[i].getFWHM(); 130 #endif 123 131 } 124 132 }
Note:
See TracChangeset
for help on using the changeset viewer.