Changeset 7276 for anuga_core/source/anuga/utilities/cg_solve.py
- Timestamp:
- Jun 30, 2009, 2:07:41 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
anuga_core/source/anuga/utilities/cg_solve.py
r6158 r7276 3 3 class ConvergenceError(exceptions.Exception): pass 4 4 5 import Numericas num5 import numpy as num 6 6 7 7 import logging, logging.config … … 24 24 25 25 if x0 is None: 26 x0 = num.zeros(b.shape, typecode=num.Float)26 x0 = num.zeros(b.shape, dtype=num.float) 27 27 else: 28 x0 = num.array(x0, typecode=num.Float)28 x0 = num.array(x0, dtype=num.float) 29 29 30 b = num.array(b, typecode=num.Float)30 b = num.array(b, dtype=num.float) 31 31 if len(b.shape) != 1 : 32 32 … … 57 57 58 58 59 b = num.array(b, typecode=num.Float)59 b = num.array(b, dtype=num.float) 60 60 if len(b.shape) != 1 : 61 61 raise VectorShapeError, 'input vector should consist of only one column' 62 62 63 63 if x0 is None: 64 x0 = num.zeros(b.shape, typecode=num.Float)64 x0 = num.zeros(b.shape, dtype=num.float) 65 65 else: 66 x0 = num.array(x0, typecode=num.Float)66 x0 = num.array(x0, dtype=num.float) 67 67 68 68
Note: See TracChangeset
for help on using the changeset viewer.