Ignore:
Timestamp:
Feb 10, 2009, 11:11:04 AM (16 years ago)
Author:
rwilson
Message:

Initial commit of numpy changes. Still a long way to go.

Location:
branches/numpy
Files:
3 edited
1 copied

Legend:

Unmodified
Added
Removed
  • branches/numpy/anuga/advection/advection.py

    r6146 r6304  
    3333from anuga.abstract_2d_finite_volumes.domain import *
    3434
    35 import Numeric as num
     35import numpy as num
    3636
    3737
     
    252252        stage_bdry = Stage.boundary_values
    253253
    254         flux = num.zeros(1, num.Float) #Work array for summing up fluxes
     254        flux = num.zeros(1, num.float) #Work array for summing up fluxes
    255255
    256256        #Loop
  • branches/numpy/anuga/advection/advection_ext.c

    r5162 r6304  
    1010
    1111#include "Python.h"
    12 #include "Numeric/arrayobject.h"
     12#include "numpy/arrayobject.h"
    1313#include "math.h"
    1414#include "stdio.h"
  • branches/numpy/anuga/advection/test_advection.py

    r6146 r6304  
    88from anuga.advection.advection import Domain, Transmissive_boundary, Dirichlet_boundary
    99
    10 import Numeric as num
     10import numpy as num
    1111
    1212
     
    142142
    143143        X = domain.quantities['stage'].explicit_update
     144        #        print 'X=%s' % str(X)
    144145        assert X[0] == -X[1]
    145146
Note: See TracChangeset for help on using the changeset viewer.