/[escript]/trunk/escript/src/Data.cpp
ViewVC logotype

Diff of /trunk/escript/src/Data.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 615 by elspeth, Wed Mar 22 02:12:00 2006 UTC revision 698 by gross, Fri Mar 31 04:52:55 2006 UTC
# Line 401  Data::reshapeDataPoint(const DataArrayVi Line 401  Data::reshapeDataPoint(const DataArrayVi
401  }  }
402    
403  Data  Data
404  Data::wherePositive(double tol) const  Data::wherePositive() const
405  {  {
406  #if defined DOPROF  #if defined DOPROF
407    profData->where++;    profData->where++;
408  #endif  #endif
409    return escript::unaryOp(*this,bind2nd(greater<double>(),0.0+tol));    return escript::unaryOp(*this,bind2nd(greater<double>(),0.0));
410  }  }
411    
412  Data  Data
413  Data::whereNegative(double tol) const  Data::whereNegative() const
414  {  {
415  #if defined DOPROF  #if defined DOPROF
416    profData->where++;    profData->where++;
417  #endif  #endif
418    return escript::unaryOp(*this,bind2nd(less<double>(),0.0-tol));    return escript::unaryOp(*this,bind2nd(less<double>(),0.0));
419  }  }
420    
421  Data  Data
422  Data::whereNonNegative(double tol) const  Data::whereNonNegative() const
423  {  {
424  #if defined DOPROF  #if defined DOPROF
425    profData->where++;    profData->where++;
426  #endif  #endif
427    return escript::unaryOp(*this,bind2nd(greater_equal<double>(),0.0+tol));    return escript::unaryOp(*this,bind2nd(greater_equal<double>(),0.0));
428  }  }
429    
430  Data  Data
431  Data::whereNonPositive(double tol) const  Data::whereNonPositive() const
432  {  {
433  #if defined DOPROF  #if defined DOPROF
434    profData->where++;    profData->where++;
435  #endif  #endif
436    return escript::unaryOp(*this,bind2nd(less_equal<double>(),0.0-tol));    return escript::unaryOp(*this,bind2nd(less_equal<double>(),0.0));
437  }  }
438    
439  Data  Data

Legend:
Removed from v.615  
changed lines
  Added in v.698

  ViewVC Help
Powered by ViewVC 1.1.26