From 47b581a6f4acddf9dc06f5cc24fcff1c9e2fdaaa Mon Sep 17 00:00:00 2001 From: German <28149841+germa89@users.noreply.github.com> Date: Thu, 18 Jul 2024 09:12:05 +0200 Subject: [PATCH 1/3] feat/adding preppost license to allowed --- src/ansys/mapdl/core/licensing.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/ansys/mapdl/core/licensing.py b/src/ansys/mapdl/core/licensing.py index f69668172d..b44cafe1e8 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) From 04afd23ecdb3b134f36961d8e94a9298b8ef6ab0 Mon Sep 17 00:00:00 2001 From: pyansys-ci-bot <92810346+pyansys-ci-bot@users.noreply.github.com> Date: Thu, 18 Jul 2024 08:45:46 +0000 Subject: [PATCH 2/3] chore: adding changelog file 3294.miscellaneous.md --- doc/changelog.d/3294.miscellaneous.md | 1 + 1 file changed, 1 insertion(+) create mode 100644 doc/changelog.d/3294.miscellaneous.md 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 From d01c0d4b473b965fdee8cc30c49a6f9cc87024bf Mon Sep 17 00:00:00 2001 From: German <28149841+germa89@users.noreply.github.com> Date: Thu, 18 Jul 2024 11:07:49 +0200 Subject: [PATCH 3/3] fix: test --- src/ansys/mapdl/core/launcher.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/ansys/mapdl/core/launcher.py b/src/ansys/mapdl/core/launcher.py index a33f7e9a5d..085824b66e 100644 --- a/src/ansys/mapdl/core/launcher.py +++ b/src/ansys/mapdl/core/launcher.py @@ -1958,7 +1958,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: