-
Notifications
You must be signed in to change notification settings - Fork 127
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Processor is exited after non_interactive
block when using Corba
#1360
Comments
Unable to reproduce this error on Ansys 2022R2 with from ansys.mapdl.core import launch_mapdl
mapdl = launch_mapdl(mode="corba")
mapdl.prep7()
print(mapdl.parameters.routine)
with mapdl.non_interactive:
mapdl.n(1)
print(mapdl.parameters.routine)
|
@mikerife, could you please attempt to reproduce this error Windows? |
Hi @akaszynski I am unable to test this - MAPDL seems to start but I get the following message: MapdlRuntimeError: Unable to connect to APDL server And there is something odd (to me) with the MAPDL processes that started up - two instances of ansys222.exe are running (one w/ -aas flag and one without, but with a -rcp flag and value shared with the ansys.exe instance. Mike |
I've got another windows machine, debugging once #1378 is done. |
Closing issue because #2517 Please @rileychall use the gRPC interface. |
Before submitting the issue
Description of the bug
When using Corba, the current processor is preserved when entering a
non_interactive
block, but is not preserved when exiting the block, as ifnon_interactive
is silently appending aFINISH
command. This is both unexpected and differs from gRPC, which preserves the current processor throughout. This leads to confusing instances of the[command] is not a recognized BEGIN command...
error.Steps To Reproduce
This code outputs
However, this code behaves as expected when run through gRPC (
launch_mapdl(mode="grpc")
), outputtingWhich Operating System are you using?
Windows
Which Python version are you using?
3.8
PyMAPDL Report
Installed packages
The text was updated successfully, but these errors were encountered: