Changeset 2445


Ignore:
Timestamp:
03/29/12 12:37:19 (13 years ago)
Author:
Malte Marquarding
Message:

Temporary fix for divergence of casacore and casapy

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/CMakeLists.txt

    r2417 r2445  
    1515message( STATUS "USE_LIBCASACORE = " ${USE_LIBCASACORE} )
    1616message( STATUS "STANDALONE = " ${STANDALONE} )
     17
     18# Use casapy's fork of casacore 
     19if ( NOT STANDALONE )
     20  add_definitions( -DUSE_CASAPY )
     21endif ()
    1722
    1823# Define compiler paths on OSX 10.5. This must be done before invoking project()
     
    4247# default is RelWithDebInfo
    4348#
     49
     50
    4451if ( NOT CMAKE_BUILD_TYPE )
    4552   set( CMAKE_BUILD_TYPE RelWithDebInfo )
  • trunk/src/STFitter.cpp

    r2444 r2445  
    118118    g = dynamic_cast<Gaussian1D<Float>* >(funcs_[i]);
    119119    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     
    120127      (*g)[0] = listGauss[i].getAmpl();
    121128      (*g)[1] = listGauss[i].getCenter();
    122129      (*g)[2] = listGauss[i].getFWHM();
     130#endif
    123131    }
    124132  }
Note: See TracChangeset for help on using the changeset viewer.