DAMASK_EICMD/examples/SpectralMethod/example_run.py

17 lines
329 B
Python
Raw Normal View History

#!/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]
2013-03-19 23:55:01 +05:30
from subprocess import call
call('make run%s'%('x'.join([str(resolution)]*3)), shell=True)