Skip to content
Snippets Groups Projects
Commit 03cfe0e7 authored by Matthieu Schaller's avatar Matthieu Schaller
Browse files

Updated task plotting script for the new gravity tasks.

parent d7ad8d65
Branches
Tags
No related merge requests found
...@@ -50,8 +50,8 @@ infile = args.input ...@@ -50,8 +50,8 @@ infile = args.input
TASKTYPES = ["none", "sort", "self", "pair", "sub_self", "sub_pair", TASKTYPES = ["none", "sort", "self", "pair", "sub_self", "sub_pair",
"init_grav", "ghost", "extra_ghost", "drift_part", "init_grav", "ghost", "extra_ghost", "drift_part",
"drift_gpart", "kick1", "kick2", "timestep", "send", "recv", "drift_gpart", "kick1", "kick2", "timestep", "send", "recv",
"grav_top_level", "grav_long_range", "grav_mm", "grav_down", "grav_top_level", "grav_long_range", "grav_ghost", "grav_mm",
"cooling", "sourceterms", "count"] "grav_down", "cooling", "sourceterms", "count"]
SUBTYPES = ["none", "density", "gradient", "force", "grav", "external_grav", SUBTYPES = ["none", "density", "gradient", "force", "grav", "external_grav",
"tend", "xv", "rho", "gpart", "multipole", "spart", "count"] "tend", "xv", "rho", "gpart", "multipole", "spart", "count"]
......
...@@ -91,17 +91,18 @@ pl.rcParams.update(PLOT_PARAMS) ...@@ -91,17 +91,18 @@ pl.rcParams.update(PLOT_PARAMS)
TASKTYPES = ["none", "sort", "self", "pair", "sub_self", "sub_pair", TASKTYPES = ["none", "sort", "self", "pair", "sub_self", "sub_pair",
"init_grav", "ghost", "extra_ghost", "drift_part", "init_grav", "ghost", "extra_ghost", "drift_part",
"drift_gpart", "kick1", "kick2", "timestep", "send", "recv", "drift_gpart", "kick1", "kick2", "timestep", "send", "recv",
"grav_top_level", "grav_long_range", "grav_mm", "grav_down", "grav_top_level", "grav_long_range", "grav_ghost", "grav_mm",
"cooling", "sourceterms", "count"] "grav_down", "cooling", "sourceterms", "count"]
SUBTYPES = ["none", "density", "gradient", "force", "grav", "external_grav", SUBTYPES = ["none", "density", "gradient", "force", "grav", "external_grav",
"tend", "xv", "rho", "gpart", "multipole", "spart", "count"] "tend", "xv", "rho", "gpart", "multipole", "spart", "count"]
# Task/subtypes of interest. # Task/subtypes of interest.
FULLTYPES = ["self/force", "self/density", "self/grav", "sub_self/force", FULLTYPES = ["self/force", "self/density", "self/grav", "sub_self/force",
"sub_self/density", "pair/force", "pair/density", "pair/grav", "sub_self/density", "sub_self/grav", "pair/force", "pair/density",
"sub_pair/force", "pair/grav", "sub_pair/force",
"sub_pair/density", "recv/xv", "send/xv", "recv/rho", "send/rho", "sub_pair/density", "sub_pair/grav", "recv/xv", "send/xv",
"recv/rho", "send/rho",
"recv/tend", "send/tend"] "recv/tend", "send/tend"]
# A number of colours for the various types. Recycled when there are # A number of colours for the various types. Recycled when there are
...@@ -109,7 +110,7 @@ FULLTYPES = ["self/force", "self/density", "self/grav", "sub_self/force", ...@@ -109,7 +110,7 @@ FULLTYPES = ["self/force", "self/density", "self/grav", "sub_self/force",
colours = ["cyan", "lightgray", "darkblue", "yellow", "tan", "dodgerblue", colours = ["cyan", "lightgray", "darkblue", "yellow", "tan", "dodgerblue",
"sienna", "aquamarine", "bisque", "blue", "green", "lightgreen", "sienna", "aquamarine", "bisque", "blue", "green", "lightgreen",
"brown", "purple", "moccasin", "olivedrab", "chartreuse", "brown", "purple", "moccasin", "olivedrab", "chartreuse",
"darksage", "darkgreen", "green", "mediumseagreen", "steelblue", "darkgreen", "green", "mediumseagreen",
"mediumaquamarine", "darkslategrey", "mediumturquoise", "mediumaquamarine", "darkslategrey", "mediumturquoise",
"black", "cadetblue", "skyblue", "red", "slategray", "gold", "black", "cadetblue", "skyblue", "red", "slategray", "gold",
"slateblue", "blueviolet", "mediumorchid", "firebrick", "slateblue", "blueviolet", "mediumorchid", "firebrick",
......
...@@ -36,6 +36,7 @@ ...@@ -36,6 +36,7 @@
* @brief The different task types. * @brief The different task types.
* *
* Be sure to update the taskID_names array in tasks.c if you modify this list! * Be sure to update the taskID_names array in tasks.c if you modify this list!
* Also update the python task plotting scripts!
*/ */
enum task_types { enum task_types {
task_type_none = 0, task_type_none = 0,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment