3
# Copyright (C) 2005-2008 Anders Logg.
4
# Licensed under the GNU LGPL Version 2.1.
6
# Run benchmarks for varying tolerance
9
from shutil import copy, move
10
from benchutil import *
13
logfile = "bench-tol.log"
15
# Parameter set for benchmarks
16
tols = [1e-4, 5e-5, 1e-5, 5e-6, 1e-6, 5e-7, 1e-7, 5e-8]
19
# Write version and date to log file
20
system("pkg-config --modversion dolfin >> " + logfile)
21
system("date +'%Y-%m-%d %H:%M:%S' >> " + logfile)
22
system("uname -snm >> " + logfile)
23
file = open(logfile, "a")
26
# Run sets of benchmarks
27
run_set("cg", "fixed-point", tols, sizes, logfile)
28
run_set("mcg", "fixed-point", tols, sizes, logfile)
29
#run_set("cg", "newton", tols, sizes, logfile)
30
#run_set("mcg", "newton", tols, sizes, logfile)
33
file.write("---------------------------------------------------------------------------------------\n")