Changeset 7174


Ignore:
Timestamp:
Jun 10, 2009, 2:43:45 PM (15 years ago)
Author:
ole
Message:

Removed divide-by-zero warning in numpy branch.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/numpy/anuga/utilities/numerical_tools.py

    r7035 r7174  
    99import numpy as num
    1010
     11#After having migrated to numpy we should use the native NAN.
     12#num.seterr(divide='warn')
     13num.seterr(divide='ignore') # Ignore division error here for the time being
    1114NAN = (num.array([1])/0.)[0]
    12 # if we use a package that has NAN, this should be updated to use NAN.
    1315
    1416# Static variable used by get_machine_precision
Note: See TracChangeset for help on using the changeset viewer.