BatchRun Namespace Reference

Functions

def main ()
 

Function Documentation

◆ main()

def BatchRun.main ( )
15 def main():
16 
17  N = 100 # Number of points in a batch
18  global source_dir, build_dir
19 
20  # Set up terminal output
21  clr = colorClass()
22  clr.set_use_colors(True)
23  clr.def_colors()
24 
25  # Hello tag
26  print(clr.END + clr.BOLD + clr.VIOLET + "-------------------------------------------")
27  print(clr.END + clr.BOLD + clr.VIOLET + " MercuryDPM BatchRun tool ")
28  print(clr.END + clr.BOLD + clr.VIOLET + "-------------------------------------------")
29 
30  if (len(sys.argv) == 3): # Full format: "run source_dir build_dir"
31  source_dir = sys.argv[1]
32  build_dir = sys.argv[2]
33 
34  print("Source dir: ", source_dir)
35  print("Build dir: ", build_dir)
36 
37 
38  for i in range(100):
39  command = [build_dir + '/Drivers/Clump/Domino/Domino']
40  command.append('-p0')
41  command.append(str(i))
42  print(command)
43  subprocess.run(command)
44 
def main()
Definition: BatchRun.py:15
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Packet print(const Packet &a)
Definition: GenericPacketMath.h:1166
str
Definition: compute_granudrum_aor.py:141

References Eigen::internal.print(), and compute_granudrum_aor.str.