Commit 1182240
Fix/Add IP parameter in launcher (#585)
* Removed the default title for plotting in `_plot_point_scalars` to solve issue #576.
* Revert "Removed the default title for plotting in `_plot_point_scalars` to solve issue #576."
One branch will be created.
This reverts commit eefed0e.
* Changed documentation to reflect the way you can change the IP of the grpc server.
* Added changes to launcher_grpc to create a `mylocal.ip` file
which tells Ansys which IP to use to launch the grpc server.
I did include an if to avoid execute if the ip is different than
default LOCALHOST (127.0.0.1).
* Making changes to `launch_mapdl` to pass the
argument `ip` to the function `launch_grpc`.
* Added procedures to write the `mylocal.ip` file
with the desired grpc ip.
It seems the process needs quite a bit time before reding
the file in (it is not the first thing it does)
hence I'm not deleting the file.
* Added `test_grpc_custom_ip` to the test grpc unit.
Resolve issue #582
* Fixing style.
* Answering review.
Added Windows description for the commands to launch ansys.
* Answering Review.
Fixed format in `create_ip_file` and added context manager.
* Answering Review.
Fixed format in `create_ip_file` and added context manager.
Fixed some line spacing and file names.
* add skip when mapdl is not locally installed
* Update tests/test_grpc.py
* Fixing format issues.
* Replaced the way IP is found in the output file.
Using regex now.
* Pushed back in the workflow the `mylocal.ip` file
deletion. Now it is deleted when we exit mapdl (`mapdl.exit()`).
I removed the traces of the old delete function.
* Deleting `_remove_mylocalip_file`
Access that file to delete it might be complicated in some environments and it might be prone to errors.
Co-authored-by: Alex Kaszynski <[email protected]>
* Deleting mention to `_remove_mylocalip_file`.
Co-authored-by: Alex Kaszynski <[email protected]>
* Added `check_valid_ansys` to skipif.
* Fixed `test_grpc_custom_ip` test.
* Update tests/test_grpc.py
Changes in asserting ip
Co-authored-by: Alex Kaszynski <[email protected]>
* Fixed name in method.
* Re ordering imports.
* Format fixing
* Format fixing using black.
* Format fixing
Co-authored-by: Alex Kaszynski <[email protected]>1 parent f56df53 commit 1182240
File tree
3 files changed
+49
-3
lines changed- ansys/mapdl/core
- doc/source/getting_started
- tests
3 files changed
+49
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
148 | 148 | | |
149 | 149 | | |
150 | 150 | | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
151 | 159 | | |
152 | 160 | | |
153 | 161 | | |
154 | 162 | | |
155 | 163 | | |
156 | 164 | | |
157 | 165 | | |
| 166 | + | |
158 | 167 | | |
159 | 168 | | |
160 | 169 | | |
| |||
340 | 349 | | |
341 | 350 | | |
342 | 351 | | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
343 | 356 | | |
| 357 | + | |
344 | 358 | | |
345 | 359 | | |
346 | 360 | | |
| |||
1005 | 1019 | | |
1006 | 1020 | | |
1007 | 1021 | | |
1008 | | - | |
| 1022 | + | |
1009 | 1023 | | |
1010 | 1024 | | |
1011 | | - | |
| 1025 | + | |
1012 | 1026 | | |
1013 | 1027 | | |
1014 | 1028 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
48 | | - | |
| 48 | + | |
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
| |||
70 | 70 | | |
71 | 71 | | |
72 | 72 | | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
73 | 93 | | |
74 | 94 | | |
75 | 95 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| 7 | + | |
| 8 | + | |
7 | 9 | | |
8 | 10 | | |
9 | 11 | | |
10 | 12 | | |
11 | 13 | | |
12 | 14 | | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
13 | 18 | | |
14 | 19 | | |
15 | 20 | | |
| |||
149 | 154 | | |
150 | 155 | | |
151 | 156 | | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
152 | 164 | | |
153 | 165 | | |
154 | 166 | | |
| |||
0 commit comments