Skip to content

Commit

Permalink
feat(bash): new bash scripts for all examples. all validations working
Browse files Browse the repository at this point in the history
  • Loading branch information
yoctoyotta1024 committed Apr 14, 2024
1 parent e3e7717 commit e03a0f5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/speedtest/speedtest.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit e03a0f5

Please sign in to comment.