Ignore:
Timestamp:
Jan 13, 2009, 11:58:10 AM (15 years ago)
Author:
rwilson
Message:

Change Numeric imports to general form - ready to change to NumPy?.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • anuga_core/source/anuga/advection/advection.py

    r5847 r6146  
    3232
    3333from anuga.abstract_2d_finite_volumes.domain import *
     34
     35import Numeric as num
     36
     37
    3438Generic_domain = Domain # Rename
    3539
     
    6670                                numproc=numproc)
    6771
    68         import Numeric
    6972        if velocity is None:
    70             self.velocity = Numeric.array([1,0],'d')
     73            self.velocity = num.array([1,0],'d')
    7174        else:
    72             self.velocity = Numeric.array(velocity,'d')
     75            self.velocity = num.array(velocity,'d')
    7376
    7477        #Only first is implemented for advection
     
    155158
    156159        import sys
    157         from Numeric import zeros, Float
    158160        from anuga.config import max_timestep
    159161
     
    228230
    229231        import sys
    230         from Numeric import zeros, Float
    231232        from anuga.config import max_timestep
    232233
     
    251252        stage_bdry = Stage.boundary_values
    252253
    253         flux = zeros(1, Float) #Work array for summing up fluxes
     254        flux = num.zeros(1, num.Float) #Work array for summing up fluxes
    254255
    255256        #Loop
Note: See TracChangeset for help on using the changeset viewer.