Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
SWIFTsim
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
SWIFT
SWIFTsim
Commits
beea6ec9
Commit
beea6ec9
authored
8 years ago
by
Matthieu Schaller
Browse files
Options
Downloads
Patches
Plain Diff
Updated the task plotting script to include the new gravity tasks
parent
ad5c2154
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
examples/plot_tasks.py
+6
-5
6 additions, 5 deletions
examples/plot_tasks.py
examples/plot_tasks_MPI.py
+6
-5
6 additions, 5 deletions
examples/plot_tasks_MPI.py
src/task.c
+8
-8
8 additions, 8 deletions
src/task.c
with
20 additions
and
18 deletions
examples/plot_tasks.py
+
6
−
5
View file @
beea6ec9
...
...
@@ -56,8 +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_
pp
"
,
"
grav_
mm
"
,
"
grav_
up
"
,
"
grav_
down
"
,
"
grav_external
"
,
"
part_sort
"
,
"
gpart_sort
"
,
"
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
"
]
TASKCOLOURS
=
{
"
none
"
:
"
black
"
,
...
...
@@ -73,10 +73,10 @@ TASKCOLOURS = {"none": "black",
"
kick_fixdt
"
:
"
green
"
,
"
send
"
:
"
yellow
"
,
"
recv
"
:
"
magenta
"
,
"
grav_pp
"
:
"
mediumorchid
"
,
"
grav_gather_m
"
:
"
mediumorchid
"
,
"
grav_fft
"
:
"
mediumnightblue
"
,
"
grav_mm
"
:
"
mediumturquoise
"
,
"
grav_up
"
:
"
mediumvioletred
"
,
"
grav_down
"
:
"
mediumnightblue
"
,
"
grav_external
"
:
"
darkred
"
,
"
part_sort
"
:
"
steelblue
"
,
"
gpart_sort
"
:
"
teal
"
,
...
...
@@ -84,12 +84,13 @@ TASKCOLOURS = {"none": "black",
"
rewait
"
:
"
olive
"
,
"
count
"
:
"
powerblue
"
}
SUBTYPES
=
[
"
none
"
,
"
density
"
,
"
force
"
,
"
grav
"
,
"
count
"
]
SUBTYPES
=
[
"
none
"
,
"
density
"
,
"
force
"
,
"
grav
"
,
"
tend
"
,
"
count
"
]
SUBCOLOURS
=
{
"
none
"
:
"
black
"
,
"
density
"
:
"
red
"
,
"
force
"
:
"
blue
"
,
"
grav
"
:
"
indigo
"
,
"
tend
"
:
"
grey
"
"
count
"
:
"
purple
"
}
# Show docs if help is requested.
...
...
This diff is collapsed.
Click to expand it.
examples/plot_tasks_MPI.py
+
6
−
5
View file @
beea6ec9
...
...
@@ -62,8 +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_
pp
"
,
"
grav_
mm
"
,
"
grav_
up
"
,
"
grav_
down
"
,
"
grav_external
"
,
"
part_sort
"
,
"
gpart_sort
"
,
"
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
"
]
TASKCOLOURS
=
{
"
none
"
:
"
black
"
,
...
...
@@ -79,10 +79,10 @@ TASKCOLOURS = {"none": "black",
"
kick_fixdt
"
:
"
green
"
,
"
send
"
:
"
yellow
"
,
"
recv
"
:
"
magenta
"
,
"
grav_pp
"
:
"
mediumorchid
"
,
"
grav_gather_m
"
:
"
mediumorchid
"
,
"
grav_fft
"
:
"
mediumnightblue
"
,
"
grav_mm
"
:
"
mediumturquoise
"
,
"
grav_up
"
:
"
mediumvioletred
"
,
"
grav_down
"
:
"
mediumnightblue
"
,
"
grav_external
"
:
"
darkred
"
,
"
part_sort
"
:
"
steelblue
"
,
"
gpart_sort
"
:
"
teal
"
,
...
...
@@ -90,12 +90,13 @@ TASKCOLOURS = {"none": "black",
"
rewait
"
:
"
olive
"
,
"
count
"
:
"
powerblue
"
}
SUBTYPES
=
[
"
none
"
,
"
density
"
,
"
force
"
,
"
grav
"
,
"
count
"
]
SUBTYPES
=
[
"
none
"
,
"
density
"
,
"
force
"
,
"
grav
"
,
"
tend
"
,
"
count
"
]
SUBCOLOURS
=
{
"
none
"
:
"
black
"
,
"
density
"
:
"
red
"
,
"
force
"
:
"
blue
"
,
"
grav
"
:
"
indigo
"
,
"
tend
"
:
"
grey
"
"
count
"
:
"
purple
"
}
# Show docs if help is requested.
...
...
This diff is collapsed.
Click to expand it.
src/task.c
+
8
−
8
View file @
beea6ec9
...
...
@@ -47,14 +47,14 @@
/* Task type names. */
const
char
*
taskID_names
[
task_type_count
]
=
{
"none"
,
"sort"
,
"self"
,
"pair"
,
"sub"
,
"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"
};
const
char
*
subtaskID_names
[
task_type_count
]
=
{
"none"
,
"density"
,
"force"
,
"grav"
};
"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"
};
const
char
*
subtaskID_names
[
task_
sub
type_count
]
=
{
"none"
,
"density"
,
"force"
,
"grav"
,
"tend"
};
/**
* @brief Computes the overlap between the parts array of two given cells.
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment