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
eb4e0c47
Commit
eb4e0c47
authored
Apr 18, 2016
by
Peter W. Draper
Browse files
Recover : for y command-line parameter and update task plotting scripts for external gravity
parent
9b82cfd1
Changes
3
Hide whitespace changes
Inline
Side-by-side
examples/main.c
View file @
eb4e0c47
...
...
@@ -153,7 +153,7 @@ int main(int argc, char *argv[]) {
/* Parse the parameters */
int
c
;
while
((
c
=
getopt
(
argc
,
argv
,
"cdef:gGhst:v:y"
))
!=
-
1
)
switch
(
c
)
{
while
((
c
=
getopt
(
argc
,
argv
,
"cdef:gGhst:v:y
:
"
))
!=
-
1
)
switch
(
c
)
{
case
'c'
:
with_cosmology
=
1
;
break
;
...
...
examples/plot_tasks.py
View file @
eb4e0c47
...
...
@@ -58,9 +58,10 @@ 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"
,
"send"
,
"recv"
,
"grav_pp"
,
"grav_mm"
,
"grav_up"
,
"grav_down"
,
"part_sort"
,
"gpart_sort"
,
"split_cell"
,
"rewait"
,
"count"
]
TASKTYPES
=
[
"none"
,
"sort"
,
"self"
,
"pair"
,
"sub"
,
"init"
,
"ghost"
,
"drift"
,
"kick"
,
"send"
,
"recv"
,
"grav_pp"
,
"grav_mm"
,
"grav_up"
,
"grav_down"
,
"grav_external"
,
"part_sort"
,
"gpart_sort"
,
"split_cell"
,
"rewait"
,
"count"
]
TASKCOLOURS
=
{
"none"
:
"black"
,
"sort"
:
"lightblue"
,
...
...
@@ -77,6 +78,7 @@ TASKCOLOURS = {"none": "black",
"grav_mm"
:
"mediumturquoise"
,
"grav_up"
:
"mediumvioletred"
,
"grav_down"
:
"mediumnightblue"
,
"grav_external"
:
"darkred"
,
"part_sort"
:
"steelblue"
,
"gpart_sort"
:
"teal"
,
"split_cell"
:
"seagreen"
,
...
...
examples/plot_tasks_MPI.py
View file @
eb4e0c47
...
...
@@ -64,9 +64,10 @@ 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"
,
"send"
,
"recv"
,
"grav_pp"
,
"grav_mm"
,
"grav_up"
,
"grav_down"
,
"part_sort"
,
"gpart_sort"
,
"split_cell"
,
"rewait"
,
"count"
]
TASKTYPES
=
[
"none"
,
"sort"
,
"self"
,
"pair"
,
"sub"
,
"init"
,
"ghost"
,
"drift"
,
"kick"
,
"send"
,
"recv"
,
"grav_pp"
,
"grav_mm"
,
"grav_up"
,
"grav_down"
,
"grav_external"
,
"part_sort"
,
"gpart_sort"
,
"split_cell"
,
"rewait"
,
"count"
]
TASKCOLOURS
=
{
"none"
:
"black"
,
"sort"
:
"lightblue"
,
...
...
@@ -83,8 +84,9 @@ TASKCOLOURS = {"none": "black",
"grav_mm"
:
"mediumturquoise"
,
"grav_up"
:
"mediumvioletred"
,
"grav_down"
:
"mediumnightblue"
,
"grav_external"
:
"darkred"
,
"part_sort"
:
"steelblue"
,
"gpart_sort"
:
"teal"
,
"gpart_sort"
:
"teal"
,
"split_cell"
:
"seagreen"
,
"rewait"
:
"olive"
,
"count"
:
"powerblue"
}
...
...
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