diff --git a/doc/changelog.d/3294.miscellaneous.md b/doc/changelog.d/3294.miscellaneous.md new file mode 100644 index 0000000000..2ace80a260 --- /dev/null +++ b/doc/changelog.d/3294.miscellaneous.md @@ -0,0 +1 @@ +feat/adding preppost license to allowed \ No newline at end of file diff --git a/src/ansys/mapdl/core/launcher.py b/src/ansys/mapdl/core/launcher.py index 3f3bdea4b4..ff15fbc138 100644 --- a/src/ansys/mapdl/core/launcher.py +++ b/src/ansys/mapdl/core/launcher.py @@ -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: diff --git a/src/ansys/mapdl/core/licensing.py b/src/ansys/mapdl/core/licensing.py index b5ef1314bb..8740084ca9 100644 --- a/src/ansys/mapdl/core/licensing.py +++ b/src/ansys/mapdl/core/licensing.py @@ -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)