453 |
useMPI = None |
useMPI = None |
454 |
# ========= set compiler flags =========================================== |
# ========= set compiler flags =========================================== |
455 |
|
|
|
# Can't use MPI and OpenMP simultaneously at this time |
|
|
if useMPI: |
|
|
omp_flags='' |
|
|
omp_flags_debug='' |
|
|
|
|
456 |
if dodebug: |
if dodebug: |
457 |
try: |
try: |
458 |
flags = env['cc_flags_debug'] + ' ' + omp_flags_debug |
flags = env['cc_flags_debug'] + ' ' + omp_flags_debug |
849 |
except: |
except: |
850 |
global_revision="-1" |
global_revision="-1" |
851 |
print "Warning: unable to recover global revsion number." |
print "Warning: unable to recover global revsion number." |
852 |
|
if global_revision == "": global_revision="0" |
853 |
print "Revision number is %s."%global_revision |
print "Revision number is %s."%global_revision |
854 |
env.Append(CPPDEFINES = "SVN_VERSION="+global_revision) |
env.Append(CPPDEFINES = "SVN_VERSION="+global_revision) |
855 |
|
|