Changeset 2568 for branches/hpc33/src


Ignore:
Timestamp:
06/14/12 11:41:35 (12 years ago)
Author:
Takeshi Nakazato
Message:

New Development: No

JIRA Issue: Yes CAS-2813

Ready for Test: Yes

Interface Changes: No

What Interface Changed: Please list interface changes

Test Programs: List test programs

Put in Release Notes: Yes/No

Module(s): Module Names change impacts.

Description: Describe your changes here...

Reuse AipsError object for nominal exception throw.
AipsError object is defined as a class member since the object should
be reused in all findLine call.


Location:
branches/hpc33/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/hpc33/src/STLineFinder.cpp

    r2562 r2568  
    884884//
    885885
    886 STLineFinder::STLineFinder() throw() : edge(0,0)
     886STLineFinder::STLineFinder() throw() : edge(0,0), err("spurious")
    887887{
    888888  setOptions();
     
    10481048                     // presence of spectral lines
    10491049
    1050   AipsError spuriousError("spurious") ;
    1051  
    10521050  while (true) {
    10531051     // a buffer for new lines found at this iteration
     
    10641062//               throw AipsError("spurious"); // nothing new - use the same
    10651063//                                            // code as for a real exception
    1066               throw spuriousError; // nothing new - use the same
    1067                                    // code as for a real exception
     1064              throw err; // nothing new - use the same
     1065                         // code as for a real exception
    10681066     }
    10691067     catch(const AipsError &ae) {
  • branches/hpc33/src/STLineFinder.h

    r2012 r2568  
    4848#include "ScantableWrapper.h"
    4949#include "Scantable.h"
     50#include "STFitter.h"
    5051
    5152namespace asap {
     
    161162                   const casa::Float &in_noise_box=-1.,
    162163                   const casa::Bool &in_median = casa::False) throw();
     164
     165   void setDetailedOptions( const casa::Int &order=9 ) ;
    163166
    164167   // set the scan to work with (in_scan parameter)
     
    266269   // scantable (default = true)
    267270   bool useScantable;
     271
     272   // shared object for nominal throw
     273   casa::AipsError err ;
    268274};
    269275
Note: See TracChangeset for help on using the changeset viewer.