Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Write failed solution when restart_failed_analysis is False #343

Merged
merged 4 commits into from
Mar 7, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions adflow/mphys/mphys_adflow.py
Original file line number Diff line number Diff line change
Expand Up @@ -559,6 +559,11 @@
print("###############################################################")
print("# Solve Failed, not attempting a clean restart")
print("###############################################################")

# write the solution so that we can diagnose
solver.writeSolution(baseName="analysis_fail", number=self.solution_counter)
self.solution_counter += 1

Check warning on line 565 in adflow/mphys/mphys_adflow.py

View check run for this annotation

Codecov / codecov/patch

adflow/mphys/mphys_adflow.py#L564-L565

Added lines #L564 - L565 were not covered by tests

raise AnalysisError("ADFLOW Solver Fatal Fail")

else:
Expand Down