Ignore:
Timestamp:
Jan 14, 2009, 3:22:08 PM (15 years ago)
Author:
rwilson
Message:

Changed num.array() calls that should have a defined type.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • anuga_core/source/anuga/load_mesh/loadASCII.py

    r6154 r6162  
    853853        mesh['vertices'] = fid.variables['vertices'][:]
    854854    except KeyError:
    855         mesh['vertices'] = num.array([])
     855        mesh['vertices'] = num.array([], num.Int)      #array default#
    856856
    857857    try:
     
    873873        mesh['segments'] = fid.variables['segments'][:]
    874874    except KeyError:
    875         mesh['segments'] = num.array([])
     875        mesh['segments'] = num.array([], num.Int)      #array default#
    876876
    877877    mesh['segment_tags'] =[]
     
    888888        mesh['triangle_neighbors'] = fid.variables['triangle_neighbors'][:]
    889889    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#
    892892
    893893    mesh['triangle_tags'] =[]
     
    916916        mesh['outline_segments'] = fid.variables['outline_segments'][:]
    917917    except KeyError:
    918         mesh['outline_segments'] = num.array([])
     918        mesh['outline_segments'] = num.array([], num.Int)      #array default#
    919919
    920920    mesh['outline_segment_tags'] =[]
     
    930930        mesh['holes'] = fid.variables['holes'][:]
    931931    except KeyError:
    932         mesh['holes'] = num.array([])
     932        mesh['holes'] = num.array([], num.Int)      #array default#
    933933
    934934    try:
    935935        mesh['regions'] = fid.variables['regions'][:]
    936936    except KeyError:
    937         mesh['regions'] = num.array([])
     937        mesh['regions'] = num.array([], num.Int)      #array default#
    938938
    939939    mesh['region_tags'] =[]
     
    949949        mesh['region_max_areas'] = fid.variables['region_max_areas'][:]
    950950    except KeyError:
    951         mesh['region_max_areas'] = num.array([])
     951        mesh['region_max_areas'] = num.array([], num.Int)      #array default#
    952952    #mesh[''] = fid.variables[''][:]
    953953
Note: See TracChangeset for help on using the changeset viewer.