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

reduced resulting image size, made cooling ghosts blue

parent 91bf7ef8
No related branches found
No related tags found
1 merge request!1198plot_dependency_graph: reduced resulting image size, made cooling ghosts blue
...@@ -139,8 +139,7 @@ def append_single_data(data0, datai): ...@@ -139,8 +139,7 @@ def append_single_data(data0, datai):
# check number of ta->tb # check number of ta->tb
N = np.sum(ind) N = np.sum(ind)
if N > 1: if N > 1:
raise Exception( raise Exception("Same dependency written multiple times %s->%s" % (ta, tb))
"Same dependency written multiple times %s->%s" % (ta, tb))
# if not present in data0 # if not present in data0
if N == 0: if N == 0:
data0.append(row) data0.append(row)
...@@ -282,6 +281,8 @@ def task_is_hydro(name): ...@@ -282,6 +281,8 @@ def task_is_hydro(name):
"ghost_out", "ghost_out",
"extra_ghost", "extra_ghost",
"cooling", "cooling",
"cooling_in",
"cooling_out",
"star_formation", "star_formation",
] ]
if name in task_name: if name in task_name:
...@@ -470,8 +471,9 @@ def write_header(f, data, git, opt): ...@@ -470,8 +471,9 @@ def write_header(f, data, git, opt):
f.write('\t label="Task dependencies for SWIFT %s";\n' % git) f.write('\t label="Task dependencies for SWIFT %s";\n' % git)
f.write("\t compound=true;\n") f.write("\t compound=true;\n")
f.write("\t ratio=0.66;\n") f.write("\t ratio=0.66;\n")
f.write("\t node[nodesep=0.15, fontsize=30, penwidth=5.];\n") f.write("\t node[nodesep=0.15, fontsize=18, penwidth=3.];\n")
f.write("\t ranksep=1.2;\n") f.write("\t edge[fontsize=12, penwidth=0.5];\n")
f.write("\t ranksep=0.8;\n")
f.write("\n") f.write("\n")
# write the special task # write the special task
...@@ -485,8 +487,7 @@ def write_header(f, data, git, opt): ...@@ -485,8 +487,7 @@ def write_header(f, data, git, opt):
continue continue
written.append(ta) written.append(ta)
write_task(f, ta, data["implicit_in"][i], write_task(f, ta, data["implicit_in"][i], data["mpi_in"][i], opt.with_calls)
data["mpi_in"][i], opt.with_calls)
# do task out # do task out
for i in range(N): for i in range(N):
...@@ -495,8 +496,7 @@ def write_header(f, data, git, opt): ...@@ -495,8 +496,7 @@ def write_header(f, data, git, opt):
continue continue
written.append(tb) written.append(tb)
write_task(f, tb, data["implicit_out"][i], write_task(f, tb, data["implicit_out"][i], data["mpi_out"][i], opt.with_calls)
data["mpi_out"][i], opt.with_calls)
f.write("\n") f.write("\n")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment