Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
SWIFT
SWIFTsim
Commits
adc69183
Commit
adc69183
authored
Jun 24, 2020
by
Matthieu Schaller
Browse files
Prevent the user (me) from being stupid by forbidding negative ranges for the task plots
parent
24d936c7
Changes
1
Hide whitespace changes
Inline
Side-by-side
tools/task_plots/plot_tasks.py
View file @
adc69183
...
...
@@ -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.
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment