Changeset 1036


Ignore:
Timestamp:
Mar 8, 2005, 12:33:03 PM (20 years ago)
Author:
ole
Message:

Removed warning about psyco on 64 bit platforms

Location:
inundation/ga/storm_surge/pyvolution
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • inundation/ga/storm_surge/pyvolution/domain.py

    r1020 r1036  
    583583        import psyco
    584584    except:
    585         msg = 'WARNING: psyco (speedup) could not import'+\
    586               ', you may want to consider installing it'
    587         print msg
     585        import os
     586        if os.uname()[4] == 'x86_64':
     587            pass
     588            #Psyco isn't supported on 64 bit systems, but it doesn't matter
     589        else:
     590            msg = 'WARNING: psyco (speedup) could not import'+\
     591                  ', you may want to consider installing it'
     592            print msg
    588593    else:
    589594        psyco.bind(Domain.update_boundary)
  • inundation/ga/storm_surge/pyvolution/shallow_water.py

    r1025 r1036  
    16211621        import psyco
    16221622    except:
    1623         msg = 'WARNING: psyco (speedup) could not import'+\
    1624               ', you may want to consider installing it'
    1625         print msg
     1623        import os
     1624        if os.uname()[4] == 'x86_64':
     1625            pass
     1626            #Psyco isn't supported on 64 bit systems, but it doesn't matter
     1627        else:
     1628            msg = 'WARNING: psyco (speedup) could not import'+\
     1629                  ', you may want to consider installing it'
     1630            print msg
    16261631    else:
    16271632        psyco.bind(Domain.distribute_to_vertices_and_edges)
Note: See TracChangeset for help on using the changeset viewer.