You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently in OpenMDAO, the type of the ndarray contained in the model's nonlinear vectors is determined in an 'all or nothing' fashion. If any component in the model is using complex step and requires complex vectors, then the entire model nonlinear vectors are made complex, which doubles the memory used by those vectors. In cases where those vectors are very large, as they often are in mphys models, this can be a problem. See discussion #3207 for more details.
The following changes are recommended:
Update the docs to clarify what happens in this situation and which vectors are doubled in size.
Issue a warning in cases where the memory usage will increase significantly.
Add an option to System to allow storage of nonlinear vectors local to that system. Note that there are situations where activating this option could increase the total memory usage of the model beyond even the doubling caused by converting the model nonlinear vectors from real to complex, so we should warn the user when that happens as well.
Associated POEM
No response
The text was updated successfully, but these errors were encountered:
Desired capability or behavior.
Currently in OpenMDAO, the type of the ndarray contained in the model's nonlinear vectors is determined in an 'all or nothing' fashion. If any component in the model is using complex step and requires complex vectors, then the entire model nonlinear vectors are made complex, which doubles the memory used by those vectors. In cases where those vectors are very large, as they often are in mphys models, this can be a problem. See discussion #3207 for more details.
The following changes are recommended:
Associated POEM
No response
The text was updated successfully, but these errors were encountered: