Skip to content

Commit

Permalink
Added doc string to _killer_comp
Browse files Browse the repository at this point in the history
  • Loading branch information
crecine committed Jun 10, 2024
1 parent 7a80e53 commit 0ace6b3
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1129,7 +1129,13 @@ def co_state_rate(t, costate, *args):
self.costate_reses = costate_reses


class killer_comp(om.ExplicitComponent):
class _killer_comp(om.ExplicitComponent):
'''
This component will stop the execution of the integration during compute,
this is useful for debugging trajectories by getting the initial value
of variables for a phase and then exiting.
'''

def compute(self, inputs, outputs):
print(f'exit in {self.name}')
exit()

0 comments on commit 0ace6b3

Please sign in to comment.