Changeset 8179


Ignore:
Timestamp:
May 16, 2011, 10:49:13 PM (13 years ago)
Author:
steve
Message:

psyco is not available for python 2.7, so have excluded warning message when trying to import psyco under python 2.7

Location:
trunk/anuga_core/source/anuga
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/anuga_core/source/anuga/__init__.py

    r8154 r8179  
    334334    except:
    335335        import os
     336        import sys
    336337        if os.name == 'posix' and os.uname()[4] in ['x86_64', 'ia64']:
    337338            pass
    338339            # Psyco isn't supported on 64 bit systems, but it doesn't matter
     340        elif sys.version[:3] == '2.7' :
     341            pass
     342            # Psyco isn't available for python 2.7 (16/05/2011)
    339343        else:
    340344            log.critical('WARNING: psyco (speedup) could not be imported, '
  • trunk/anuga_core/source/anuga/operators/run_dam_break.py

    r8167 r8179  
    4343
    4444# structured mesh
    45 points, vertices, boundary = anuga.rectangular_cross(int(L/dx), int(W/dy), L, W, (0.0, -W/2))
    46 
    47 domain = anuga.Domain(points, vertices, boundary)
     45domain = anuga.rectangular_cross_domain(int(L/dx), int(W/dy), L, W, (0.0, -W/2))
    4846
    4947domain.set_name(output_file)               
Note: See TracChangeset for help on using the changeset viewer.