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
......@@ -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.
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment