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
a3ba56c9
Commit
a3ba56c9
authored
Aug 22, 2016
by
Matthieu Schaller
Browse files
Updated task plotting script for the new gradient loop
parent
2817a9d2
Changes
2
Hide whitespace changes
Inline
Side-by-side
examples/plot_tasks.py
View file @
a3ba56c9
...
...
@@ -56,9 +56,8 @@ pl.rcParams.update(PLOT_PARAMS)
# Tasks and subtypes. Indexed as in tasks.h.
TASKTYPES
=
[
"none"
,
"sort"
,
"self"
,
"pair"
,
"sub_self"
,
"sub_pair"
,
"init"
,
"ghost"
,
"drift"
,
"kick"
,
"kick_fixdt"
,
"send"
,
"recv"
,
"grav_gather_m"
,
"grav_fft"
,
"grav_mm"
,
"grav_up"
,
"grav_external"
,
"part_sort"
,
"gpart_sort"
,
"split_cell"
,
"rewait"
,
"count"
]
"kick"
,
"kick_fixdt"
,
"send"
,
"recv"
,
"grav_gather_m"
,
"grav_fft"
,
"grav_mm"
,
"grav_up"
,
"grav_external"
,
"count"
]
TASKCOLOURS
=
{
"none"
:
"black"
,
"sort"
:
"lightblue"
,
...
...
@@ -68,7 +67,6 @@ TASKCOLOURS = {"none": "black",
"sub_pair"
:
"navy"
,
"init"
:
"indigo"
,
"ghost"
:
"cyan"
,
"drift"
:
"maroon"
,
"kick"
:
"green"
,
"kick_fixdt"
:
"green"
,
"send"
:
"yellow"
,
...
...
@@ -78,20 +76,17 @@ TASKCOLOURS = {"none": "black",
"grav_mm"
:
"mediumturquoise"
,
"grav_up"
:
"mediumvioletred"
,
"grav_external"
:
"darkred"
,
"part_sort"
:
"steelblue"
,
"gpart_sort"
:
"teal"
,
"split_cell"
:
"seagreen"
,
"rewait"
:
"olive"
,
"count"
:
"powerblue"
}
SUBTYPES
=
[
"none"
,
"density"
,
"force"
,
"grav"
,
"tend"
,
"count"
]
SUBTYPES
=
[
"none"
,
"density"
,
"gradient"
,
"force"
,
"grav"
,
"tend"
,
"count"
]
SUBCOLOURS
=
{
"none"
:
"black"
,
"density"
:
"red"
,
"gradient"
:
"powerblue"
,
"force"
:
"blue"
,
"grav"
:
"indigo"
,
"tend"
:
"grey"
,
"count"
:
"
purple
"
}
"count"
:
"
black
"
}
# Show docs if help is requested.
if
len
(
sys
.
argv
)
==
2
and
(
sys
.
argv
[
1
][
0
:
2
]
==
"-h"
or
sys
.
argv
[
1
][
0
:
3
]
==
"--h"
):
...
...
examples/plot_tasks_MPI.py
View file @
a3ba56c9
...
...
@@ -62,9 +62,8 @@ pl.rcParams.update(PLOT_PARAMS)
# Tasks and subtypes. Indexed as in tasks.h.
TASKTYPES
=
[
"none"
,
"sort"
,
"self"
,
"pair"
,
"sub_self"
,
"sub_pair"
,
"init"
,
"ghost"
,
"drift"
,
"kick"
,
"kick_fixdt"
,
"send"
,
"recv"
,
"grav_gather_m"
,
"grav_fft"
,
"grav_mm"
,
"grav_up"
,
"grav_external"
,
"part_sort"
,
"gpart_sort"
,
"split_cell"
,
"rewait"
,
"count"
]
"kick"
,
"kick_fixdt"
,
"send"
,
"recv"
,
"grav_gather_m"
,
"grav_fft"
,
"grav_mm"
,
"grav_up"
,
"grav_external"
,
"count"
]
TASKCOLOURS
=
{
"none"
:
"black"
,
"sort"
:
"lightblue"
,
...
...
@@ -74,7 +73,6 @@ TASKCOLOURS = {"none": "black",
"sub_pair"
:
"navy"
,
"init"
:
"indigo"
,
"ghost"
:
"cyan"
,
"drift"
:
"maroon"
,
"kick"
:
"green"
,
"kick_fixdt"
:
"green"
,
"send"
:
"yellow"
,
...
...
@@ -84,20 +82,17 @@ TASKCOLOURS = {"none": "black",
"grav_mm"
:
"mediumturquoise"
,
"grav_up"
:
"mediumvioletred"
,
"grav_external"
:
"darkred"
,
"part_sort"
:
"steelblue"
,
"gpart_sort"
:
"teal"
,
"split_cell"
:
"seagreen"
,
"rewait"
:
"olive"
,
"count"
:
"powerblue"
}
SUBTYPES
=
[
"none"
,
"density"
,
"force"
,
"grav"
,
"tend"
,
"count"
]
SUBTYPES
=
[
"none"
,
"density"
,
"gradient"
,
"force"
,
"grav"
,
"tend"
,
"count"
]
SUBCOLOURS
=
{
"none"
:
"black"
,
"density"
:
"red"
,
"gradient"
:
"powerblue"
,
"force"
:
"blue"
,
"grav"
:
"indigo"
,
"tend"
:
"grey"
,
"count"
:
"
purple
"
}
"count"
:
"
black
"
}
# Show docs if help is requested.
if
len
(
sys
.
argv
)
==
2
and
(
sys
.
argv
[
1
][
0
:
2
]
==
"-h"
or
sys
.
argv
[
1
][
0
:
3
]
==
"--h"
):
...
...
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