- Timestamp:
- Nov 6, 2008, 4:20:34 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
anuga_core/source_numpy_conversion/anuga/advection/advection.py
r5847 r5908 20 20 """ 21 21 22 import numpy 22 23 23 24 #import logging, logging.config … … 66 67 numproc=numproc) 67 68 68 import Numeric69 69 if velocity is None: 70 self.velocity = Numeric.array([1,0],'d')70 self.velocity = numpy.array([1,0],'d') 71 71 else: 72 self.velocity = Numeric.array(velocity,'d')72 self.velocity = numpy.array(velocity,'d') 73 73 74 74 #Only first is implemented for advection … … 155 155 156 156 import sys 157 from Numeric import zeros, Float158 157 from anuga.config import max_timestep 159 158 … … 228 227 229 228 import sys 230 from Numeric import zeros, Float231 229 from anuga.config import max_timestep 232 230 … … 251 249 stage_bdry = Stage.boundary_values 252 250 253 flux = zeros(1, Float) #Work array for summing up fluxes251 flux = numpy.zeros(1, numpy.float) #Work array for summing up fluxes 254 252 255 253 #Loop
Note: See TracChangeset
for help on using the changeset viewer.