Ignore:
Timestamp:
01/31/13 18:55:29 (11 years ago)
Author:
Takeshi Nakazato
Message:

New Development: No

JIRA Issue: Yes CAS-4770

Ready for Test: Yes

Interface Changes: No

What Interface Changed: Please list interface changes

Test Programs: test_sdcal2

Put in Release Notes: No

Module(s): Module Names change impacts.

Description: Describe your changes here...

Replace assert with casa::assert_ to avoid aborting casapy session.


File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/Interpolator1D.tcc

    r2733 r2756  
    1414#include <casa/Arrays/Vector.h>
    1515#include <casa/Exceptions/Error.h>
     16#include <casa/Utilities/Assert.h>
    1617
    1718#include "Interpolator1D.h"
     
    5253void Interpolator1D<T, U>::setX(T *x, unsigned int n)
    5354{
    54   assert(n_ == 0 || n_ == n);
     55  //assert(n_ == 0 || n_ == n);
     56  casa::assert_<casa::AipsError>(n_ == 0 || n_ == n, "length mismatch in data.");
    5557  x_ = x;
    5658  n_ = n;
     
    6264void Interpolator1D<T, U>::setY(U *y, unsigned int n)
    6365{
    64   assert(n_ == 0 || n_ == n);
     66  //assert(n_ == 0 || n_ == n);
     67  casa::assert_<casa::AipsError>(n_ == 0 || n_ == n, "length mismatch in data.");
    6568  y_ = y;
    6669  n_ = n;
Note: See TracChangeset for help on using the changeset viewer.