Changeset 5899 for anuga_core/source_numpy_conversion/anuga/abstract_2d_finite_volumes/generic_boundary_conditions.py
 Timestamp:
 Nov 6, 2008, 12:28:22 PM (15 years ago)
 File:

 1 edited
Legend:
 Unmodified
 Added
 Removed

anuga_core/source_numpy_conversion/anuga/abstract_2d_finite_volumes/generic_boundary_conditions.py
r5672 r5899 1 ## Automatically adapted for numpy.oldnumeric Oct 28, 2008 by alter_code1.py 2 1 3 """boundary.py  Classes for implementing boundary conditions 2 4 """ … … 67 69 raise Exception, msg 68 70 69 from Numeric import array, Float 70 self.conserved_quantities=array(conserved_quantities).astype(Float) 71 # from numpy.oldnumeric import array, Float 72 from numpy import array, float 73 self.conserved_quantities=array(conserved_quantities).astype(float) 71 74 72 75 def __repr__(self): … … 97 100 98 101 99 from Numeric import array, Float 102 # from numpy.oldnumeric import array, Float 103 from numpy import array, float 100 104 try: 101 q = array(q).astype( Float)105 q = array(q).astype(float) 102 106 except: 103 107 msg = 'Return value from time boundary function could ' … … 136 140 def __init__(self, filename, domain): 137 141 import time 138 from Numeric import array 142 # from numpy.oldnumeric import array 143 from numpy import array 139 144 from anuga.config import time_format 140 145 from anuga.abstract_2d_finite_volumes.util import File_function … … 206 211 207 212 import time 208 from Numeric import array, zeros, Float 213 # from numpy.oldnumeric import array, zeros, Float 214 from numpy import array, zeros, float 209 215 from anuga.config import time_format 210 216 from anuga.abstract_2d_finite_volumes.util import file_function … … 222 228 223 229 if verbose: print 'Find midpoint coordinates of entire boundary' 224 self.midpoint_coordinates = zeros( (len(domain.boundary), 2), Float)230 self.midpoint_coordinates = zeros( (len(domain.boundary), 2), float) 225 231 boundary_keys = domain.boundary.keys() 226 232
Note: See TracChangeset
for help on using the changeset viewer.