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:
1 edited
1 copied

Legend:

Unmodified
Added
Removed
  • branches/numpy/anuga/shallow_water/benchmark_sww2dem.py

    r6162 r6304  
    2525
    2626from Scientific.IO.NetCDF import NetCDFFile
    27 import Numeric as num
     27import numpy as num
    2828
    2929from anuga.fit_interpolate.interpolate import Interpolate
     
    101101    sww_fileName = tempfile.mktemp(".sww" )
    102102    # sww_fileName = "aa.sww"
    103     elevation = num.array(range(len(mesh_dict["vertices"])), num.Int)      #array default#
     103    elevation = num.array(range(len(mesh_dict["vertices"])), num.int)      #array default#
    104104    stage = elevation
    105105    ymomentum = elevation
     
    111111    sww.store_header(fid, 0,
    112112               len(mesh_dict['triangles']),
    113                len(mesh_dict["vertices"]),sww_precision=num.Float)
     113               len(mesh_dict["vertices"]),sww_precision=num.float)
    114114    sww.store_triangulation(fid,
    115115                      mesh_dict["vertices"], mesh_dict['triangles'],
Note: See TracChangeset for help on using the changeset viewer.