Replies: 1 comment 4 replies
-
It is a bit difficult to follow your question. Can you post here a minimum working example of python code so I can try to replicate it?? |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I have written a code that basically works, now I wanted to intercepts some errors with try/except. To avoid too much complexity of the code I had to shift some of the code snippets to functions.
The code worked already with putting mapdl-commands inside functions, but now I wanted to nest functions to still lower levels, the code exits with MapdlExitedError. I'm not aware of any mistake in the code, so I supposed, it could be a problem with nested function.
The structure is:
I did a test:
If I put this first mapdl-call inside fun2 before calling fun3, this mapdl-call is executed and the next - now first - mapdl-call inside fun3 throws the error.
--> So it seems to work until fun2 with two levels of nesting.
And what is more: in the same code I do the launch and resume within main and then call fun3 from main, this works without any problem, so fun3 itself cannot be the problem.
Is there a known limit of nested function calls or some restricted functionality?
Beta Was this translation helpful? Give feedback.
All reactions