Skip to content

Commit

Permalink
fix(wind-turbine): annotate main controller as HELICS federate
Browse files Browse the repository at this point in the history
This only happens if the `helicsTopic` option is set in the app config
metadata.
  • Loading branch information
activeshadow committed Nov 2, 2023
1 parent aec7c31 commit 7b7af50
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/python/phenix_apps/apps/wind_turbine/wind_turbine.py
Original file line number Diff line number Diff line change
Expand Up @@ -250,6 +250,9 @@ def __main_controller(self, node, anemo = None, yaw = None, match = None):

config.append_to_cpu(module)

annotation = [{'broker': addr, 'fed-count': 1}]
self.add_annotation(node.hostname, 'helics/federate', annotation)

md = node.metadata.get('logic', tmpl.get('logic', {}))
speed_tag = md.get('speedTag', 'speed.high')
dir_tag = md.get('directionTag', 'dir.high')
Expand Down

0 comments on commit 7b7af50

Please sign in to comment.