Changeset 6146 for anuga_core/source/anuga/advection/advection.py
- Timestamp:
- Jan 13, 2009, 11:58:10 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
anuga_core/source/anuga/advection/advection.py
r5847 r6146 32 32 33 33 from anuga.abstract_2d_finite_volumes.domain import * 34 35 import Numeric as num 36 37 34 38 Generic_domain = Domain # Rename 35 39 … … 66 70 numproc=numproc) 67 71 68 import Numeric69 72 if velocity is None: 70 self.velocity = Numeric.array([1,0],'d')73 self.velocity = num.array([1,0],'d') 71 74 else: 72 self.velocity = Numeric.array(velocity,'d')75 self.velocity = num.array(velocity,'d') 73 76 74 77 #Only first is implemented for advection … … 155 158 156 159 import sys 157 from Numeric import zeros, Float158 160 from anuga.config import max_timestep 159 161 … … 228 230 229 231 import sys 230 from Numeric import zeros, Float231 232 from anuga.config import max_timestep 232 233 … … 251 252 stage_bdry = Stage.boundary_values 252 253 253 flux = zeros(1,Float) #Work array for summing up fluxes254 flux = num.zeros(1, num.Float) #Work array for summing up fluxes 254 255 255 256 #Loop
Note: See TracChangeset
for help on using the changeset viewer.