Changeset 5920


Ignore:
Timestamp:
Nov 6, 2008, 5:58:48 PM (17 years ago)
Author:
ole
Message:

Fixed up code for Itanium 64 bit.
All tests pass except for the CRC checksum calculation

Location:
anuga_core/source/anuga
Files:
3 edited

Legend:

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

    r5897 r5920  
    16341634    except:
    16351635        import os
    1636         if os.name == 'posix' and os.uname()[4] == 'x86_64':
     1636        if os.name == 'posix' and os.uname()[4] in ['x86_64', 'ia64']:
    16371637            pass
    16381638            # Psyco isn't supported on 64 bit systems, but it doesn't matter
  • anuga_core/source/anuga/shallow_water/shallow_water_domain.py

    r5874 r5920  
    20832083    except:
    20842084        import os
    2085         if os.name == 'posix' and os.uname()[4] == 'x86_64':
     2085        if os.name == 'posix' and os.uname()[4] in ['x86_64', 'ia64']:
    20862086            pass
    20872087            #Psyco isn't supported on 64 bit systems, but it doesn't matter
  • anuga_core/source/anuga/shallow_water/test_data_manager.py

    r5882 r5920  
    20832083        for i, line in enumerate(lines[6:]):
    20842084            for j, value in enumerate( line.split() ):
    2085                 #assert allclose(float(value), -(10-i+j)*cellsize)
    2086                 assert float(value) == -(10-i+j)*cellsize
     2085                assert allclose(float(value), -(10-i+j)*cellsize,
     2086                                atol=1.0e-12, rtol=1.0e-12)
     2087
     2088                # Note: Equality can be obtained in this case,
     2089                # but it is better to use allclose.
     2090                #assert float(value) == -(10-i+j)*cellsize
    20872091
    20882092
Note: See TracChangeset for help on using the changeset viewer.