Changeset 4098


Ignore:
Timestamp:
Dec 19, 2006, 5:15:41 PM (17 years ago)
Author:
jakeman
Message:

Wrapped elements extracted from Numeric arrays in int() as they appeared
as arrays on the ANU 64 bit machine. This is similar to what was done in
changeset:2778

Committed by Ole after joint debugging with John

o-This line, and those below, will be ignored--

M pmesh2domain.py

File:
1 edited

Legend:

Unmodified
Added
Removed
  • anuga_core/source/anuga/abstract_2d_finite_volumes/pmesh2domain.py

    r3563 r4098  
    206206    for seg, tag in map(None, mesh_dict['segments'],
    207207                        mesh_dict['segment_tags']):
    208         v1 = seg[0]
    209         v2 = seg[1]
     208        v1 = int(seg[0])
     209        v2 = int(seg[1])
    210210        for key in [(v1,v2),(v2,v1)]:
    211211            if sides.has_key(key) and tag <> "":
     
    223223    sides = {}
    224224    for id, triangle in enumerate(triangles):
    225         a = triangle[0]
    226         b = triangle[1]
    227         c = triangle[2]
     225        a = int(triangle[0])
     226        b = int(triangle[1])
     227        c = int(triangle[2])
    228228        sides[a,b] = (id, 2) #(id, face)
    229229        sides[b,c] = (id, 0) #(id, face)
Note: See TracChangeset for help on using the changeset viewer.