-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathconfig.py
executable file
·33 lines (30 loc) · 1.12 KB
/
config.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#!/usr/bin/env python3
import subprocess, argparse
parser = argparse.ArgumentParser(
description='convenience script to compile executables')
parser.add_argument(
'-d','--debug',
dest='debug',
type=str,
default='',
help='Whether to add debugging information (true/false)')
parser.add_argument('-p','--profile',
dest='profile',
type=str,
default='',
help='Whether to add profiling information (true/false)')
args = parser.parse_args()
print("=====================================================")
print("Compiling radial Chebyshev executable")
print("=====================================================")
subprocess.call(
'make debug={} profile={} use_cheb=true use_contiguous_longitudes=true'.format(args.debug, args.profile),
shell=True
)
print("=====================================================")
print("Compiling radial finite difference executable")
print("=====================================================")
subprocess.call(
'make debug={} profile={} use_contiguous_longitudes=true'.format(args.debug, args.profile),
shell=True
)