Skip to content

Commit ba66041

Browse files
feat/adding preppost license to allowed (#3294)
* feat/adding preppost license to allowed * chore: adding changelog file 3294.miscellaneous.md * fix: test --------- Co-authored-by: pyansys-ci-bot <[email protected]>
1 parent 553bae7 commit ba66041

File tree

3 files changed

+6
-1
lines changed

3 files changed

+6
-1
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
feat/adding preppost license to allowed

src/ansys/mapdl/core/launcher.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1959,7 +1959,10 @@ def _check_license_argument(license_type, additional_switches):
19591959
# In older versions probably it might raise an error. But not sure.
19601960
license_type = license_type.lower().strip()
19611961

1962-
if "enterprise" in license_type and "solver" not in license_type:
1962+
if "preppost" in license_type:
1963+
license_type = "preppost"
1964+
1965+
elif "enterprise" in license_type and "solver" not in license_type:
19631966
license_type = "ansys"
19641967

19651968
elif "enterprise" in license_type and "solver" in license_type:

src/ansys/mapdl/core/licensing.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@
5151
"meba": "Ansys Mechanical Enterprise Solver",
5252
"mech_2": "Ansys Mechanical Premium",
5353
"mech_1": "Ansys Mechanical Pro",
54+
"preppost": "Mechanical Enterprise PrepPost",
5455
}
5556
ALLOWABLE_LICENSES = list(LICENSES)
5657

0 commit comments

Comments
 (0)