Skip to content

Commit

Permalink
refactor: finishing routine for v24.1 or older
Browse files Browse the repository at this point in the history
  • Loading branch information
germa89 committed Dec 12, 2024
1 parent b613cb6 commit 454b075
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/ansys/mapdl/core/mapdl_grpc.py
Original file line number Diff line number Diff line change
Expand Up @@ -1236,15 +1236,12 @@ def _exit_mapdl_server(self):
if self._version is None or self._version < 24.1:

Check warning on line 1236 in src/ansys/mapdl/core/mapdl_grpc.py

View check run for this annotation

Codecov / codecov/patch

src/ansys/mapdl/core/mapdl_grpc.py#L1236

Added line #L1236 was not covered by tests
self._ctrl("EXIT")

elif self._version >= 25.1:
elif self._version >= 24.1:

Check warning on line 1239 in src/ansys/mapdl/core/mapdl_grpc.py

View check run for this annotation

Codecov / codecov/patch

src/ansys/mapdl/core/mapdl_grpc.py#L1239

Added line #L1239 was not covered by tests
# We can't use the non-cached version because of recursion error.
# self.run("/EXIT,NOSAVE,,,,,SERVER")
self.finish()

Check warning on line 1242 in src/ansys/mapdl/core/mapdl_grpc.py

View check run for this annotation

Codecov / codecov/patch

src/ansys/mapdl/core/mapdl_grpc.py#L1242

Added line #L1242 was not covered by tests
self._ctrl("EXIT")

elif self._version >= 24.1:
self._ctrl("EXIT")

return

Check warning on line 1245 in src/ansys/mapdl/core/mapdl_grpc.py

View check run for this annotation

Codecov / codecov/patch

src/ansys/mapdl/core/mapdl_grpc.py#L1245

Added line #L1245 was not covered by tests

def _kill_process(self):
Expand Down

0 comments on commit 454b075

Please sign in to comment.