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

feat/adding preppost license to allowed #3294

Merged
merged 5 commits into from
Aug 26, 2024
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 doc/changelog.d/3294.miscellaneous.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
feat/adding preppost license to allowed
5 changes: 4 additions & 1 deletion src/ansys/mapdl/core/launcher.py
Original file line number Diff line number Diff line change
Expand Up @@ -1959,7 +1959,10 @@ def _check_license_argument(license_type, additional_switches):
# In older versions probably it might raise an error. But not sure.
license_type = license_type.lower().strip()

if "enterprise" in license_type and "solver" not in license_type:
if "preppost" in license_type:
license_type = "preppost"

elif "enterprise" in license_type and "solver" not in license_type:
license_type = "ansys"

elif "enterprise" in license_type and "solver" in license_type:
Expand Down
1 change: 1 addition & 0 deletions src/ansys/mapdl/core/licensing.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@
"meba": "Ansys Mechanical Enterprise Solver",
"mech_2": "Ansys Mechanical Premium",
"mech_1": "Ansys Mechanical Pro",
"preppost": "Mechanical Enterprise PrepPost",
}
ALLOWABLE_LICENSES = list(LICENSES)

Expand Down
Loading