Skip to content
Snippets Groups Projects
Commit 9bf3718a authored by Mladen Ivkovic's avatar Mladen Ivkovic
Browse files

added rt injection task to dependency plotting tool

parent 72f610c9
No related branches found
No related tags found
1 merge request!1155RT injection task
......@@ -969,6 +969,9 @@ void task_get_group_name(int type, int subtype, char *cluster) {
case task_subtype_bh_feedback:
strcpy(cluster, "BHFeedback");
break;
case task_subtype_rt_inject:
strcpy(cluster, "RTinject");
break;
default:
strcpy(cluster, "None");
break;
......
......@@ -277,6 +277,21 @@ def getFunctionCalls(name):
return pre + txt + app
def taskIsRT(name):
"""
Does the task concern Radiative Transfer?
Parameters
----------
name: str
Task name
"""
if "_rt" in name:
return True
return False
def writeTask(f, name, implicit, mpi, with_calls):
"""
Write the special task (e.g. implicit and mpi)
......@@ -319,6 +334,9 @@ def writeTask(f, name, implicit, mpi, with_calls):
if taskIsGravity(name):
txt += "color=red3,"
if taskIsRT(name):
txt += 'color="springgreen"'
if with_calls:
func = getFunctionCalls(name)
if func is not None:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment