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

Add the 'resort' and 'sync' as their own task categories for the analysis

parent cdaadf5d
No related branches found
No related tags found
No related merge requests found
......@@ -149,9 +149,12 @@ const char *subtaskID_names[task_subtype_count] = {
};
const char *task_category_names[task_category_count] = {
"drift", "sort", "hydro", "gravity", "feedback",
"black holes", "cooling", "star formation", "limiter", "time integration",
"mpi", "fof", "others", "sink"};
"drift", "sort", "resort",
"hydro", "gravity", "feedback",
"black holes", "cooling", "star formation",
"limiter", "sync", "time integration",
"mpi", "fof", "others",
"sink"};
#ifdef WITH_MPI
/* MPI communicators for the subtypes. */
......@@ -1439,9 +1442,11 @@ enum task_categories task_get_category(const struct task *t) {
case task_type_sort:
case task_type_stars_sort:
case task_type_stars_resort:
return task_category_sort;
case task_type_stars_resort:
return task_category_resort;
case task_type_send:
case task_type_recv:
return task_category_mpi;
......@@ -1452,9 +1457,11 @@ enum task_categories task_get_category(const struct task *t) {
return task_category_time_integration;
case task_type_timestep_limiter:
case task_type_timestep_sync:
return task_category_limiter;
case task_type_timestep_sync:
return task_category_sync;
case task_type_ghost:
case task_type_extra_ghost:
case task_type_end_hydro_force:
......
......
......@@ -166,6 +166,7 @@ enum task_actions {
enum task_categories {
task_category_drift,
task_category_sort,
task_category_resort,
task_category_hydro,
task_category_gravity,
task_category_feedback,
......@@ -173,6 +174,7 @@ enum task_categories {
task_category_cooling,
task_category_star_formation,
task_category_limiter,
task_category_sync,
task_category_time_integration,
task_category_mpi,
task_category_fof,
......
......
......@@ -145,6 +145,7 @@ tasks = [
"dead time",
"drift",
"sort",
"resort",
"hydro",
"gravity",
"feedback",
......@@ -152,10 +153,12 @@ tasks = [
"cooling",
"star formation",
"limiter",
"sync",
"time integration",
"mpi",
"fof",
"others",
"sink",
"total",
]
......
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment