Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
SWIFTsim
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
SWIFT
SWIFTsim
Commits
f61423a7
Commit
f61423a7
authored
4 years ago
by
Mladen Ivkovic
Browse files
Options
Downloads
Patches
Plain Diff
reduced resulting image size, made cooling ghosts blue
parent
91bf7ef8
No related branches found
No related tags found
1 merge request
!1198
plot_dependency_graph: reduced resulting image size, made cooling ghosts blue
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tools/plot_task_dependencies.py
+8
-8
8 additions, 8 deletions
tools/plot_task_dependencies.py
with
8 additions
and
8 deletions
tools/plot_task_dependencies.py
+
8
−
8
View file @
f61423a7
...
@@ -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
"
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment