Changeset 7456
- Timestamp:
- Sep 1, 2009, 12:10:30 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
anuga_core/compile_all.py
r7455 r7456 38 38 os.chdir(buildroot) 39 39 40 print '-----------------------------------------------' 41 print 'Attempting to compile Metis for parallel ANUGA!' 42 print '-----------------------------------------------' 40 43 41 44 # Attempt to compile Metis for use with anuga_parallel … … 43 46 os.chdir('pymetis') 44 47 48 make_logfile = 'make_metis.log' 49 options = '' 45 50 if sys.platform == 'win32': 46 o s.system('make for_win32')51 options = 'for_win32' 47 52 else: 48 53 if os.name == 'posix': 49 54 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 55 options = 'COPTIONS="-fPIC"' 56 56 57 58 57 make_command = 'make %s > %s' % (options, make_logfile) 58 print make_command 59 err = os.system(make_command) 60 if err != 0: 61 msg = 'Could not compile Metis ' 62 msg += 'on platform %s, %s\n' % (sys.platform, os.name) 63 msg += 'You need to compile Metis manually ' 64 msg += 'if you want to run ANUGA in parallel.' 65 raise Exception, msg 66 else: 67 msg = 'Compiled Metis succesfully. Output from Make is available in %s'\ 68 % Make_logfile 59 69 print 'That took %.3fs' %(time.time() - t0) 60 70
Note: See TracChangeset
for help on using the changeset viewer.