Changeset 7455


Ignore:
Timestamp:
Sep 1, 2009, 11:41:09 AM (14 years ago)
Author:
ole
Message:

Added Metis to compilation procedure

File:
1 edited

Legend:

Unmodified
Added
Removed
  • anuga_core/compile_all.py

    r6718 r7455  
    55
    66os.chdir('source')
    7 
    87os.chdir('anuga')
    98
    10 #Complete horrible hack to decide which branch to take (Ole)
    11 #try:
    12 #    os.stat('inundation-numpy-branch')
    13 #except:
    14 #    os.chdir('inundation')
    15 #else:
    16 #    os.chdir('inundation-numpy-branch')   
    179
    1810print 'Changing to', os.getcwd()       
     
    2214t0 = time.time()
    2315
    24 #Attempt to compile all extensions
     16# Attempt to compile all ANUGA extensions
    2517
    2618os.chdir('utilities')
     
    4537
    4638os.chdir(buildroot)   
    47 #execfile('test_all.py')
     39
     40
     41# Attempt to compile Metis for use with anuga_parallel
     42os.chdir('source')
     43os.chdir('pymetis')
     44
     45if sys.platform == 'win32':
     46    os.system('make for_win32')
     47else:
     48    if os.name == 'posix':
     49        if os.uname()[4] in ['x86_64', 'ia64']:
     50            os.system('make COPTIONS="-fPIC"')
     51        else:
     52            os.system('make')
     53    else:
     54        msg = 'Not sure how to complie Metis on platform: %s, %s' % (sys.platform, os.name)
     55        raise Exception, msg
     56
     57
    4858   
    4959print 'That took %.3fs' %(time.time() - t0)
Note: See TracChangeset for help on using the changeset viewer.