-
Notifications
You must be signed in to change notification settings - Fork 122
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
Array parameters retrieval fail when the size is very big #2844
Comments
By @ayush-kumar-423 Related to #2844 |
More info on this:
Details:
Code to replicateDetails
import numpy as np
from ansys.mapdl.core import launch_mapdl
mapdl = launch_mapdl()
mapdl.finish()
mapdl.clear()
mapdl.prep7()
for dimensions in np.logspace(1, 7, 7):
print(dimensions)
dimensions = int(dimensions)
mapdl.dim("myarr","", dimensions)
mapdl.vfill("myarr","rand",0, 1) # filling array with random numbers
# Retrieving
print("Retrieving...")
values = mapdl.parameters["myarr"] # fail with "MapdlExitedError: MAPDL server connection terminated"
print("Retrieved.")
# Setting
myarr = np.random.rand(dimensions)
print("Setting...")
mapdl.parameters["myarr2"] = myarr*2
print("Set") |
This can be overcomed by changing the env var export PYMAPDL_MAX_MESSAGE_LENGTH=471859200 It set to Ideally we would like a more explicit message when failing. |
As the title.
It will take extensive debugging in MAPDL.
Example
The text was updated successfully, but these errors were encountered: