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
c786b757
Commit
c786b757
authored
Jun 14, 2016
by
Matthieu Schaller
Browse files
Defined the sub_self and sub_pair tasks
parent
a4f97e08
Changes
4
Hide whitespace changes
Inline
Side-by-side
examples/plot_tasks.py
View file @
c786b757
...
...
@@ -55,8 +55,8 @@ PLOT_PARAMS = {"axes.labelsize": 10,
pl
.
rcParams
.
update
(
PLOT_PARAMS
)
# Tasks and subtypes. Indexed as in tasks.h.
TASKTYPES
=
[
"none"
,
"sort"
,
"self"
,
"pair"
,
"sub"
,
"init"
,
"ghost"
,
"drift"
,
"kick"
,
"kick_fixdt"
,
"send"
,
"recv"
,
"grav_pp"
,
"grav_mm"
,
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"
,
"split_cell"
,
"rewait"
,
"count"
]
...
...
@@ -64,7 +64,8 @@ TASKCOLOURS = {"none": "black",
"sort"
:
"lightblue"
,
"self"
:
"greenyellow"
,
"pair"
:
"navy"
,
"sub"
:
"hotpink"
,
"sub_self"
:
"greenyellow"
,
"sub_pair"
:
"navy"
,
"init"
:
"indigo"
,
"ghost"
:
"cyan"
,
"drift"
:
"maroon"
,
...
...
examples/plot_tasks_MPI.py
View file @
c786b757
...
...
@@ -61,8 +61,8 @@ PLOT_PARAMS = {"axes.labelsize": 10,
pl
.
rcParams
.
update
(
PLOT_PARAMS
)
# Tasks and subtypes. Indexed as in tasks.h.
TASKTYPES
=
[
"none"
,
"sort"
,
"self"
,
"pair"
,
"sub"
,
"init"
,
"ghost"
,
"drift"
,
"kick"
,
"kick_fixdt"
,
"send"
,
"recv"
,
"grav_pp"
,
"grav_mm"
,
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"
,
"split_cell"
,
"rewait"
,
"count"
]
...
...
@@ -70,7 +70,8 @@ TASKCOLOURS = {"none": "black",
"sort"
:
"lightblue"
,
"self"
:
"greenyellow"
,
"pair"
:
"navy"
,
"sub"
:
"hotpink"
,
"sub_self"
:
"greenyellow"
,
"sub_pair"
:
"navy"
,
"init"
:
"indigo"
,
"ghost"
:
"cyan"
,
"drift"
:
"maroon"
,
...
...
src/task.c
View file @
c786b757
...
...
@@ -47,11 +47,11 @@
/* Task type names. */
const
char
*
taskID_names
[
task_type_count
]
=
{
"none"
,
"sort"
,
"self"
,
"pair"
,
"sub"
,
"init"
,
"ghost"
,
"drift"
,
"kick"
,
"kick_fixdt"
,
"send"
,
"recv"
,
"grav_pp"
,
"grav_mm"
,
"grav_up"
,
"grav_down"
,
"grav_external"
,
"part_sort"
,
"gpart_sort"
,
"split_cell"
,
"rewait"
};
"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"
,
"split_cell"
,
"rewait"
};
const
char
*
subtaskID_names
[
task_type_count
]
=
{
"none"
,
"density"
,
"force"
,
"grav"
};
...
...
src/task.h
View file @
c786b757
...
...
@@ -37,7 +37,8 @@ enum task_types {
task_type_sort
,
task_type_self
,
task_type_pair
,
task_type_sub
,
task_type_sub_self
,
task_type_sub_pair
,
task_type_init
,
task_type_ghost
,
task_type_drift
,
...
...
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