Skip to content

Commit

Permalink
Fix a bug with the logging
Browse files Browse the repository at this point in the history
  • Loading branch information
sblauth committed Nov 11, 2024
1 parent f1abaea commit ee6beb7
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,6 @@ def _exit(self, message: str) -> None:
"""
if self.soft_exit:
log.error(message)
log.end()
else:
raise _exceptions.NotConvergedError("Optimization Algorithm", message)

Expand All @@ -269,6 +268,7 @@ def post_processing(self) -> None:
elif self.converged_reason == -2:
self.iteration -= 1
self.post_process()
log.end()
self._exit("Armijo rule failed.")

# Mesh Quality is too low
Expand Down

0 comments on commit ee6beb7

Please sign in to comment.