Changeset 6304 for branches/numpy/anuga/shallow_water/benchmark_sww2dem.py
- Timestamp:
- Feb 10, 2009, 11:11:04 AM (16 years ago)
- Location:
- branches/numpy
- Files:
-
- 1 edited
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
branches/numpy/anuga/shallow_water/benchmark_sww2dem.py
r6162 r6304 25 25 26 26 from Scientific.IO.NetCDF import NetCDFFile 27 import Numericas num27 import numpy as num 28 28 29 29 from anuga.fit_interpolate.interpolate import Interpolate … … 101 101 sww_fileName = tempfile.mktemp(".sww" ) 102 102 # 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# 104 104 stage = elevation 105 105 ymomentum = elevation … … 111 111 sww.store_header(fid, 0, 112 112 len(mesh_dict['triangles']), 113 len(mesh_dict["vertices"]),sww_precision=num. Float)113 len(mesh_dict["vertices"]),sww_precision=num.float) 114 114 sww.store_triangulation(fid, 115 115 mesh_dict["vertices"], mesh_dict['triangles'],
Note: See TracChangeset
for help on using the changeset viewer.