From 35acfef75b900fc6bc5cbfa357a58313cfcabd58 Mon Sep 17 00:00:00 2001 From: kmahajan Date: Tue, 17 Jan 2023 09:57:00 +0100 Subject: [PATCH 1/2] corrected doc string for example - on windows, folder is winx64 --- src/ansys/mapdl/core/launcher.py | 8 ++++---- src/ansys/mapdl/core/pool.py | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/ansys/mapdl/core/launcher.py b/src/ansys/mapdl/core/launcher.py index 4f99a78ac9c..47c960f91bd 100644 --- a/src/ansys/mapdl/core/launcher.py +++ b/src/ansys/mapdl/core/launcher.py @@ -114,7 +114,7 @@ def _version_from_path(path): """Extract ansys version from a path. Generally, the version of ANSYS is contained in the path: - C:/Program Files/ANSYS Inc/v202/ansys/bin/win64/ANSYS202.exe + C:/Program Files/ANSYS Inc/v202/ansys/bin/winx64/ANSYS202.exe /usr/ansys_inc/v211/ansys/bin/mapdl @@ -395,7 +395,7 @@ def launch_grpc( Run MAPDL with shared memory parallel and specify the location of the ansys binary. - >>> exec_file = 'C:/Program Files/ANSYS Inc/v202/ansys/bin/win64/ANSYS202.exe' + >>> exec_file = 'C:/Program Files/ANSYS Inc/v202/ansys/bin/winx64/ANSYS202.exe' >>> mapdl = launch_mapdl(exec_file, additional_switches='-smp') """ @@ -968,7 +968,7 @@ def change_default_ansys_path(exe_loc): Change default Ansys location on Windows - >>> ans_pth = 'C:/Program Files/ANSYS Inc/v193/ansys/bin/win64/ANSYS193.exe' + >>> ans_pth = 'C:/Program Files/ANSYS Inc/v193/ansys/bin/winx64/ANSYS193.exe' >>> launcher.change_default_ansys_path(ans_pth) >>> launcher.check_valid_ansys() True @@ -1580,7 +1580,7 @@ def launch_mapdl( Run MAPDL with shared memory parallel and specify the location of the Ansys binary. - >>> exec_file = 'C:/Program Files/ANSYS Inc/v201/ansys/bin/win64/ANSYS201.exe' + >>> exec_file = 'C:/Program Files/ANSYS Inc/v201/ansys/bin/winx64/ANSYS201.exe' >>> mapdl = launch_mapdl(exec_file, additional_switches='-smp') Connect to an existing instance of MAPDL at IP 192.168.1.30 and diff --git a/src/ansys/mapdl/core/pool.py b/src/ansys/mapdl/core/pool.py index 784d49884a7..281a4525e8e 100755 --- a/src/ansys/mapdl/core/pool.py +++ b/src/ansys/mapdl/core/pool.py @@ -99,7 +99,7 @@ class LocalMapdlPool: Create a pool while specifying the MAPDL executable in Windows. - >>> exec_file = 'C:/Program Files/ANSYS Inc/v212/ansys/bin/win64/ANSYS212.exe' + >>> exec_file = 'C:/Program Files/ANSYS Inc/v212/ansys/bin/winx64/ANSYS212.exe' >>> pool = LocalMapdlPool(10, exec_file=exec_file) Creating Pool: 100%|########| 10/10 [00:01<00:00, 1.43it/s] From e3ae1db0a5f1593bd81c269acd4600dcce110959 Mon Sep 17 00:00:00 2001 From: kmahajan Date: Wed, 18 Jan 2023 13:16:46 +0100 Subject: [PATCH 2/2] change version in docstring --- src/ansys/mapdl/core/launcher.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ansys/mapdl/core/launcher.py b/src/ansys/mapdl/core/launcher.py index 47c960f91bd..e67eb73de7f 100644 --- a/src/ansys/mapdl/core/launcher.py +++ b/src/ansys/mapdl/core/launcher.py @@ -1580,7 +1580,7 @@ def launch_mapdl( Run MAPDL with shared memory parallel and specify the location of the Ansys binary. - >>> exec_file = 'C:/Program Files/ANSYS Inc/v201/ansys/bin/winx64/ANSYS201.exe' + >>> exec_file = 'C:/Program Files/ANSYS Inc/v231/ansys/bin/winx64/ANSYS231.exe' >>> mapdl = launch_mapdl(exec_file, additional_switches='-smp') Connect to an existing instance of MAPDL at IP 192.168.1.30 and