Opened 16 years ago

Closed 16 years ago

#245 closed defect (fixed)

Updating of mesh breaks on 64 bit machines

Reported by: anonymous Owned by: duncan
Priority: highest Milestone:
Component: Architecture and API Version:
Severity: critical Keywords:


There has been some recent updates to mesh, which has broken anuga on 64 bit machines, using pyrhon 2.4. Probably the usual problem of something which should be an integer being a list containing one integer?

For instance running in the damage_modelling directory produces errors of the form:


EEEEEEEEE ====================================================================== ERROR: test_calc_collapse_probability (test_inundation_damage.Test_inundation_damage)

Traceback (most recent call last):

File "damage_modelling/", line 62, in setUp


File "/home/steve/ga/anuga_core/source/anuga/pmesh/", line 1540, in auto_segment


File "/home/steve/ga/anuga_core/source/anuga/pmesh/", line 1553, in _createBoundary


File "/home/steve/ga/anuga_core/source/anuga/alpha_shape/", line 66, in init


File "/home/steve/ga/anuga_core/source/anuga/alpha_shape/", line 213, in _alpha_shape_algorithm


File "/home/steve/ga/anuga_core/source/anuga/alpha_shape/", line 364, in _vertex_intervals


TypeError?: list indices must be integers

Change History (2)

comment:1 Changed 16 years ago by steve

By the way, this was reported by steve

comment:2 Changed 16 years ago by Steve

  • Resolution set to fixed
  • Status changed from new to closed

Fixed the problem.

We have seen this before, some sort of problem with some of the Numeric commands on 64 bit machines, in which the entries of an integer array are seen as arrays and not as integers. So a way around this is to coerce the entry to an int.

ie from




Hopefully this will be fixed once we move onto numpy.

Note: See TracTickets for help on using tickets.