From e03a0f5fb8e8486f2bd8050bff99474a9ef08cc3 Mon Sep 17 00:00:00 2001 From: "clara.bayley" Date: Sun, 14 Apr 2024 13:13:42 +0200 Subject: [PATCH] feat(bash): new bash scripts for all examples. all validations working --- examples/speedtest/speedtest.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/speedtest/speedtest.py b/examples/speedtest/speedtest.py index 580292289..b97053a0f 100644 --- a/examples/speedtest/speedtest.py +++ b/examples/speedtest/speedtest.py @@ -64,7 +64,7 @@ dataset = binpath+"spd_sol.zarr" ### --- plotting initialisation figures --- ### -isfigures = [True, True] # booleans for [making, saving] initialisation figures +isfigures = [False, False] # booleans for [making, saving] initialisation figures savefigpath = outputdir # directory for saving figures SDgbxs2plt = [0] # gbxindex of SDs to plot (nb. "all" can be very slow) outdatafile = outputdir+"/spd_allstats.txt" # file to write out stats to @@ -139,7 +139,7 @@ def write_outstats(nruns, n, outdatafile, buildtype, stats): with open(outdatafile, 'r') as file: lines = file.readlines() - if buildtype == "gpus_cpus": + if buildtype == "cuda": line = "\n"+str(n)+" "+str(stats["tstep"]) with open(outdatafile, 'a') as file: file.write(line)