Peano
Loading...
Searching...
No Matches
plot_celldepth_benchmarks Namespace Reference

Data Structures

class  BenchmarkData
 

Functions

 get_all_logs ()
 Find all log files.
 

Variables

 parser = argparse.ArgumentParser(description="Plot benchmark outputs.")
 
 dest
 
 action
 
 default
 
 help
 
 args = parser.parse_args()
 
 log = args.log
 
 both = args.both
 
 logfiles = get_all_logs()
 
list alldata = [BenchmarkData(l) for l in logfiles]
 
list npartlist = []
 
list data_by_npart = []
 
list templist = []
 
list sort_val_list = [t.cellmax * 1e3 + t.cellmin for t in templist]
 
 fig = plt.figure(figsize=(24, 6), dpi=300)
 
 ax1 = fig.add_subplot(1, 2, 1)
 
 ax2 = fig.add_subplot(1, 2, 2)
 
 ax = fig.add_subplot(1, 1, 1)
 
list markers = ["s", "o", "^", "<", ">"]
 
list data = data_by_npart[n]
 
list xvals = [str(d.cellmax) + "/" + str(d.cellmin) for d in data]
 
list walltimes = [d.walltime for d in data]
 
list timestepping = [d.timestepping for d in data]
 
 marker
 
 label
 
 linestyle
 
 c
 
str suffix = ""
 
str fname = "celldepth_benchmark" + suffix + ".png"
 

Function Documentation

◆ get_all_logs()

plot_celldepth_benchmarks.get_all_logs ( )

Find all log files.

Definition at line 34 of file plot_celldepth_benchmarks.py.

Variable Documentation

◆ action

plot_celldepth_benchmarks.action

Definition at line 194 of file plot_celldepth_benchmarks.py.

◆ alldata

list plot_celldepth_benchmarks.alldata = [BenchmarkData(l) for l in logfiles]

Definition at line 213 of file plot_celldepth_benchmarks.py.

◆ args

plot_celldepth_benchmarks.args = parser.parse_args()

Definition at line 206 of file plot_celldepth_benchmarks.py.

◆ ax

plot_celldepth_benchmarks.ax = fig.add_subplot(1, 1, 1)

Definition at line 247 of file plot_celldepth_benchmarks.py.

◆ ax1

plot_celldepth_benchmarks.ax1 = fig.add_subplot(1, 2, 1)

Definition at line 243 of file plot_celldepth_benchmarks.py.

◆ ax2

plot_celldepth_benchmarks.ax2 = fig.add_subplot(1, 2, 2)

Definition at line 244 of file plot_celldepth_benchmarks.py.

◆ both

plot_celldepth_benchmarks.both = args.both

Definition at line 209 of file plot_celldepth_benchmarks.py.

◆ c

plot_celldepth_benchmarks.c

Definition at line 265 of file plot_celldepth_benchmarks.py.

◆ data

list plot_celldepth_benchmarks.data = data_by_npart[n]

Definition at line 252 of file plot_celldepth_benchmarks.py.

◆ data_by_npart

list plot_celldepth_benchmarks.data_by_npart = []

Definition at line 222 of file plot_celldepth_benchmarks.py.

◆ default

plot_celldepth_benchmarks.default

Definition at line 195 of file plot_celldepth_benchmarks.py.

◆ dest

plot_celldepth_benchmarks.dest

Definition at line 193 of file plot_celldepth_benchmarks.py.

◆ fig

plot_celldepth_benchmarks.fig = plt.figure(figsize=(24, 6), dpi=300)

Definition at line 242 of file plot_celldepth_benchmarks.py.

◆ fname

str plot_celldepth_benchmarks.fname = "celldepth_benchmark" + suffix + ".png"

Definition at line 344 of file plot_celldepth_benchmarks.py.

◆ help

plot_celldepth_benchmarks.help

Definition at line 196 of file plot_celldepth_benchmarks.py.

◆ label

plot_celldepth_benchmarks.label

Definition at line 263 of file plot_celldepth_benchmarks.py.

◆ linestyle

plot_celldepth_benchmarks.linestyle

Definition at line 264 of file plot_celldepth_benchmarks.py.

◆ log

plot_celldepth_benchmarks.log = args.log

Definition at line 208 of file plot_celldepth_benchmarks.py.

◆ logfiles

plot_celldepth_benchmarks.logfiles = get_all_logs()

Definition at line 212 of file plot_celldepth_benchmarks.py.

◆ marker

plot_celldepth_benchmarks.marker

Definition at line 262 of file plot_celldepth_benchmarks.py.

◆ markers

list plot_celldepth_benchmarks.markers = ["s", "o", "^", "<", ">"]

Definition at line 249 of file plot_celldepth_benchmarks.py.

◆ npartlist

list plot_celldepth_benchmarks.npartlist = []

Definition at line 216 of file plot_celldepth_benchmarks.py.

◆ parser

plot_celldepth_benchmarks.parser = argparse.ArgumentParser(description="Plot benchmark outputs.")

Definition at line 189 of file plot_celldepth_benchmarks.py.

◆ sort_val_list

plot_celldepth_benchmarks.sort_val_list = [t.cellmax * 1e3 + t.cellmin for t in templist]

Definition at line 231 of file plot_celldepth_benchmarks.py.

◆ suffix

str plot_celldepth_benchmarks.suffix = ""

Definition at line 339 of file plot_celldepth_benchmarks.py.

◆ templist

list plot_celldepth_benchmarks.templist = []

Definition at line 225 of file plot_celldepth_benchmarks.py.

◆ timestepping

list plot_celldepth_benchmarks.timestepping = [d.timestepping for d in data]

Definition at line 256 of file plot_celldepth_benchmarks.py.

◆ walltimes

list plot_celldepth_benchmarks.walltimes = [d.walltime for d in data]

Definition at line 255 of file plot_celldepth_benchmarks.py.

◆ xvals

list plot_celldepth_benchmarks.xvals = [str(d.cellmax) + "/" + str(d.cellmin) for d in data]

Definition at line 254 of file plot_celldepth_benchmarks.py.