Skip to content
Snippets Groups Projects
Commit adc69183 authored by Matthieu Schaller's avatar Matthieu Schaller
Browse files

Prevent the user (me) from being stupid by forbidding negative ranges for the task plots

parent 24d936c7
No related branches found
No related tags found
No related merge requests found
......@@ -410,6 +410,9 @@ print(("# Number of threads:", nthread))
sdata = data[data[:, ticcol] != 0]
sdata = sdata[sdata[:, toccol] != 0]
if delta_t < 0.:
print("The time-range must be >=0!")
return 1
# Each rank can have different clocks (compute node), but we want to use the
# same delta times range for comparisons, so we suck it up and take the hit of
# precalculating this, unless the user knows better.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment