Changeset 6162
- Timestamp:
- Jan 14, 2009, 3:22:08 PM (16 years ago)
- Location:
- anuga_core/source/anuga
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
anuga_core/source/anuga/geospatial_data/geospatial_data.py
r6153 r6162 707 707 if verbose: print "make unique random number list and get indices" 708 708 709 total=num.array(range(self_size) )709 total=num.array(range(self_size), num.Int) #array default# 710 710 total_list = total.tolist() 711 711 -
anuga_core/source/anuga/load_mesh/loadASCII.py
r6154 r6162 853 853 mesh['vertices'] = fid.variables['vertices'][:] 854 854 except KeyError: 855 mesh['vertices'] = num.array([] )855 mesh['vertices'] = num.array([], num.Int) #array default# 856 856 857 857 try: … … 873 873 mesh['segments'] = fid.variables['segments'][:] 874 874 except KeyError: 875 mesh['segments'] = num.array([] )875 mesh['segments'] = num.array([], num.Int) #array default# 876 876 877 877 mesh['segment_tags'] =[] … … 888 888 mesh['triangle_neighbors'] = fid.variables['triangle_neighbors'][:] 889 889 except KeyError: 890 mesh['triangles'] = num.array([] )891 mesh['triangle_neighbors'] = num.array([] )890 mesh['triangles'] = num.array([], num.Int) #array default# 891 mesh['triangle_neighbors'] = num.array([], num.Int) #array default# 892 892 893 893 mesh['triangle_tags'] =[] … … 916 916 mesh['outline_segments'] = fid.variables['outline_segments'][:] 917 917 except KeyError: 918 mesh['outline_segments'] = num.array([] )918 mesh['outline_segments'] = num.array([], num.Int) #array default# 919 919 920 920 mesh['outline_segment_tags'] =[] … … 930 930 mesh['holes'] = fid.variables['holes'][:] 931 931 except KeyError: 932 mesh['holes'] = num.array([] )932 mesh['holes'] = num.array([], num.Int) #array default# 933 933 934 934 try: 935 935 mesh['regions'] = fid.variables['regions'][:] 936 936 except KeyError: 937 mesh['regions'] = num.array([] )937 mesh['regions'] = num.array([], num.Int) #array default# 938 938 939 939 mesh['region_tags'] =[] … … 949 949 mesh['region_max_areas'] = fid.variables['region_max_areas'][:] 950 950 except KeyError: 951 mesh['region_max_areas'] = num.array([] )951 mesh['region_max_areas'] = num.array([], num.Int) #array default# 952 952 #mesh[''] = fid.variables[''][:] 953 953 -
anuga_core/source/anuga/shallow_water/benchmark_sww2dem.py
r6157 r6162 101 101 sww_fileName = tempfile.mktemp(".sww" ) 102 102 # sww_fileName = "aa.sww" 103 elevation = num.array(range(len(mesh_dict["vertices"])) )103 elevation = num.array(range(len(mesh_dict["vertices"])), num.Int) #array default# 104 104 stage = elevation 105 105 ymomentum = elevation -
anuga_core/source/anuga/shallow_water/data_manager.py
r6157 r6162 3205 3205 volumes.append([v4,v3,v2]) #Lower element 3206 3206 3207 volumes = num.array(volumes )3207 volumes = num.array(volumes, num.Int) #array default# 3208 3208 3209 3209 if origin is None: … … 4121 4121 volumes.append([v4,v2,v3]) #Lower element 4122 4122 4123 volumes = num.array(volumes )4123 volumes = num.array(volumes, num.Int) #array default# 4124 4124 4125 4125 geo_ref = Geo_reference(refzone, min(x), min(y)) -
anuga_core/source/anuga/shallow_water/eq_test.py
r6157 r6162 75 75 76 76 y = 10000 77 points=num.array([[0]*2]*max )77 points=num.array([[0]*2]*max, num.Int) #array default# 78 78 print points 79 79 half_max_skip=(max*skip)/2 … … 87 87 number_points = profile_lenght/interval 88 88 y = 10000 89 points=num.array([[0]*2]*number_points )89 points=num.array([[0]*2]*number_points, num.Int) #array default# 90 90 print points 91 91 half_profile=profile_lenght/2 -
anuga_core/source/anuga/utilities/sparse.py
r6158 r6162 355 355 356 356 #Right hand side column 357 v = num.array([[2,4],[3,4],[4,4]] )357 v = num.array([[2,4],[3,4],[4,4]], num.Int) #array default# 358 358 359 359 u = A*v[:,0]
Note: See TracChangeset
for help on using the changeset viewer.