Changeset 6162 for anuga_core/source/anuga/load_mesh/loadASCII.py
- Timestamp:
- Jan 14, 2009, 3:22:08 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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
Note: See TracChangeset
for help on using the changeset viewer.