OpenMDAO / Aviary

NASA's aircraft analysis, design, and optimization tool
https://openmdao.github.io/Aviary/
Other
107 stars 51 forks source link

Bools not properly created using `fortran_to_aviary` #319

Open jkirk5 opened 3 weeks ago

jkirk5 commented 3 weeks ago

Description

Running fortran_to_aviary for a GASP-based input deck, the line IGEAR=0 was converted to aircraft:landing_gear:fixed_gear,0,unitless The fixed gear flag is a boolean, but is not being properly updated from the int GASP uses. This may be a larger problem converting ints to bools for other variables, and could require additional checks in fortran_to_aviary that the variables it is converting to are getting the expected types in the metadata.

Example

filename.in: IGEAR=0 run aviary fortran_to_aviary filename.in -o filename.out -l GASP filename.out will be: aircraft:landing_gear:fixed_gear,0,unitless

Aviary Version

0.9.4

Relevant environment information

No response