Commit eb4e0c47 authored by Peter W. Draper's avatar Peter W. Draper
Browse files

Recover : for y command-line parameter and update task plotting scripts for external gravity

parent 9b82cfd1
...@@ -153,7 +153,7 @@ int main(int argc, char *argv[]) { ...@@ -153,7 +153,7 @@ int main(int argc, char *argv[]) {
/* Parse the parameters */ /* Parse the parameters */
int c; 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': case 'c':
with_cosmology = 1; with_cosmology = 1;
break; break;
......
...@@ -58,9 +58,10 @@ PLOT_PARAMS = {"axes.labelsize": 10, ...@@ -58,9 +58,10 @@ PLOT_PARAMS = {"axes.labelsize": 10,
pl.rcParams.update(PLOT_PARAMS) pl.rcParams.update(PLOT_PARAMS)
# Tasks and subtypes. Indexed as in tasks.h. # Tasks and subtypes. Indexed as in tasks.h.
TASKTYPES = ["none", "sort", "self", "pair", "sub", "init", "ghost", "drift", "kick", TASKTYPES = ["none", "sort", "self", "pair", "sub", "init", "ghost", "drift",
"send", "recv", "grav_pp", "grav_mm", "grav_up", "grav_down", "kick", "send", "recv", "grav_pp", "grav_mm", "grav_up",
"part_sort", "gpart_sort", "split_cell", "rewait", "count"] "grav_down", "grav_external", "part_sort", "gpart_sort",
"split_cell", "rewait", "count"]
TASKCOLOURS = {"none": "black", TASKCOLOURS = {"none": "black",
"sort": "lightblue", "sort": "lightblue",
...@@ -77,6 +78,7 @@ TASKCOLOURS = {"none": "black", ...@@ -77,6 +78,7 @@ TASKCOLOURS = {"none": "black",
"grav_mm": "mediumturquoise", "grav_mm": "mediumturquoise",
"grav_up": "mediumvioletred", "grav_up": "mediumvioletred",
"grav_down": "mediumnightblue", "grav_down": "mediumnightblue",
"grav_external": "darkred",
"part_sort": "steelblue", "part_sort": "steelblue",
"gpart_sort": "teal" , "gpart_sort": "teal" ,
"split_cell": "seagreen", "split_cell": "seagreen",
......
...@@ -64,9 +64,10 @@ PLOT_PARAMS = {"axes.labelsize": 10, ...@@ -64,9 +64,10 @@ PLOT_PARAMS = {"axes.labelsize": 10,
pl.rcParams.update(PLOT_PARAMS) pl.rcParams.update(PLOT_PARAMS)
# Tasks and subtypes. Indexed as in tasks.h. # Tasks and subtypes. Indexed as in tasks.h.
TASKTYPES = ["none", "sort", "self", "pair", "sub", "init", "ghost", "drift", "kick", TASKTYPES = ["none", "sort", "self", "pair", "sub", "init", "ghost", "drift",
"send", "recv", "grav_pp", "grav_mm", "grav_up", "grav_down", "kick", "send", "recv", "grav_pp", "grav_mm", "grav_up",
"part_sort", "gpart_sort", "split_cell", "rewait", "count"] "grav_down", "grav_external", "part_sort", "gpart_sort",
"split_cell", "rewait", "count"]
TASKCOLOURS = {"none": "black", TASKCOLOURS = {"none": "black",
"sort": "lightblue", "sort": "lightblue",
...@@ -83,8 +84,9 @@ TASKCOLOURS = {"none": "black", ...@@ -83,8 +84,9 @@ TASKCOLOURS = {"none": "black",
"grav_mm": "mediumturquoise", "grav_mm": "mediumturquoise",
"grav_up": "mediumvioletred", "grav_up": "mediumvioletred",
"grav_down": "mediumnightblue", "grav_down": "mediumnightblue",
"grav_external": "darkred",
"part_sort": "steelblue", "part_sort": "steelblue",
"gpart_sort": "teal", "gpart_sort": "teal" ,
"split_cell": "seagreen", "split_cell": "seagreen",
"rewait": "olive", "rewait": "olive",
"count": "powerblue"} "count": "powerblue"}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment