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

Fixed warning message for ansys-mechanical #326

Merged
merged 6 commits into from
Aug 4, 2023
Merged
Show file tree
Hide file tree
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
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ This document follows the conventions laid out in [Keep a CHANGELOG](https://kee
### Fixed

- Broken links (#316)
- Fixed warning message for ansys-mechanical (#326)

## [0.9.3](https://github.com/ansys/pymechanical/releases/tag/v0.9.3) - July 27 2023

Expand Down
2 changes: 2 additions & 0 deletions src/ansys/mechanical/core/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,8 @@ def cli(
if input_script:
args.append("-script")
args.append(input_script)

if (not graphical) and input_script and (version < 241):
warnings.warn(
"Please ensure ExtAPI.Application.Close() is at the end of your script. "
"Without this command, Batch mode will not terminate.",
Expand Down