mdolab / openconcept

OpenConcept: A toolkit for conceptual MDAO of aircraft with unconventional propulsion architectures
MIT License
37 stars 32 forks source link

Make compatible with scipy 1.1 #3

Closed bbrelje closed 6 years ago

bbrelje commented 6 years ago

For unknown reasons the scipyoptimizedriver breaks when used with Scipy 1.1 or higher. This is probably an openmdao bug but can't be sure

bbrelje commented 6 years ago

The issue was that the simpson integration module was providing indices to scipy.sparse as float64, not int32. I inserted a soft typecast to keep this from happening.