Skip to content

Commit

Permalink
Change watchpoint to point from mesh to WP
Browse files Browse the repository at this point in the history
  • Loading branch information
fsimonis committed Oct 14, 2024
1 parent d24b87f commit 266d29b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion preciceconfigvisualizer/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -309,6 +309,7 @@ def lookupParticipantColor(name):
wpname = watchpoint.attrib["name"]
wpcoord = watchpoint.attrib["coordinate"]
if watchpoints:
meshNode = f"{name}-{wpmesh}"
wpnode = f"{name}-WP-{wpname}"
addNode(
participant,
Expand All @@ -317,7 +318,7 @@ def lookupParticipantColor(name):
label=quote(f"{wpname}\nat ({wpcoord})"),
color=color,
)
addEdge(participant, wpnode, name, color=color)
addEdge(participant, meshNode, wpnode, color=color)

# other children
for child in elem.iterchildren():
Expand Down

0 comments on commit 266d29b

Please sign in to comment.