diff --git a/examples/SpectralMethod/example_run.py b/examples/SpectralMethod/example_run.py index bafc79d11..19b44655e 100755 --- a/examples/SpectralMethod/example_run.py +++ b/examples/SpectralMethod/example_run.py @@ -1,5 +1,17 @@ #!/usr/bin/env python # -*- coding: UTF-8 no BOM -*- +import sys +resolutions = [16,32,64] +resolution = resolutions[0] + +try: + resolution = int(sys.argv[1]) +except: + pass + +if resolution not in resolutions: + resolution = resolutions[0] + from subprocess import call -call('make run16x16x16', shell=True) \ No newline at end of file +call('make run%s'%('x'.join([str(resolution)]*3)), shell=True) \ No newline at end of file