passing of multiple make options possible now
This commit is contained in:
parent
9490c8a3c1
commit
aeb1e18268
|
@ -28,11 +28,12 @@ Writes version specific files for different MARC releases, adjustes the make fil
|
||||||
)
|
)
|
||||||
|
|
||||||
parser.add_option('-c', '--compile', dest='spectralCompile', action='store_true', \
|
parser.add_option('-c', '--compile', dest='spectralCompile', action='store_true', \
|
||||||
help='compiles sthe spectral solver [%default]')
|
help='compiles the spectral solver [%default]')
|
||||||
parser.add_option('-m', '--make', dest='makeOptions', type='string', \
|
parser.add_option('-m', '--make', dest='makeOptions', action='extend', type='string', \
|
||||||
help='options parsed to make file when compiling spectral code [%default]')
|
metavar="KEY=VALUE", \
|
||||||
|
help='comma-separated list of options passed to Makefile when compiling spectral code %default')
|
||||||
parser.set_defaults(spectralCompile = False)
|
parser.set_defaults(spectralCompile = False)
|
||||||
parser.set_defaults(makeOptions = 'F90=ifort')
|
parser.set_defaults(makeOptions = ['F90=ifort'])
|
||||||
|
|
||||||
(options, args) = parser.parse_args()
|
(options, args) = parser.parse_args()
|
||||||
|
|
||||||
|
@ -88,7 +89,7 @@ makefile.close()
|
||||||
# compiling spectral code
|
# compiling spectral code
|
||||||
if (options.spectralCompile):
|
if (options.spectralCompile):
|
||||||
os.system('make --directory %s clean'%(baseDir))
|
os.system('make --directory %s clean'%(baseDir))
|
||||||
os.system('make --directory %s %s'%(baseDir,options.makeOptions))
|
os.system('make --directory %s %s'%(baseDir,' '.join(options.makeOptions)))
|
||||||
|
|
||||||
for dir in bin_link:
|
for dir in bin_link:
|
||||||
for file in bin_link[dir]:
|
for file in bin_link[dir]:
|
||||||
|
|
Loading…
Reference in New Issue