Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ project(
'optvl',
'c',
# don't forget to change the value in pyproject.toml
version: '2.2.1',
version: '2.2.2',
license: 'GPL-3.0',
meson_version: '>= 0.64.0',
default_options: [
Expand Down
4 changes: 2 additions & 2 deletions optvl/optvl_class.py
Original file line number Diff line number Diff line change
Expand Up @@ -794,8 +794,8 @@ def check_type(key, avl_vars, given_val):
"albe": True,
"load": True,
"clcd": np.zeros(6, dtype=np.float64),
"nspans": np.zeros(num_secs, dtype=int),
"sspaces": np.zeros(num_secs, dtype=int),
"nspans": np.zeros(num_secs, dtype=np.int32),
"sspaces": np.zeros(num_secs, dtype=np.float64),
"clcdsec": np.zeros((num_secs,6)),
"claf": np.ones(num_secs),
}
Expand Down
8 changes: 8 additions & 0 deletions optvl/utils/check_surface_dict.py
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,14 @@ def pre_check_input_dict(input_dict: dict):
# Verify at least two section
if input_dict["surfaces"][surface]["num_sections"] < 2:
raise RuntimeError("Must have at least two sections per surface!")

# if no controls are specified then fill it in with 0s
if "num_controls" not in input_dict["surfaces"][surface].keys():
input_dict["surfaces"][surface]["num_controls"] = np.zeros(input_dict["surfaces"][surface]["num_sections"],dtype=np.int32)

# if no dvs are specified then fill it in with 0s
if "num_design_vars" not in input_dict["surfaces"][surface].keys():
input_dict["surfaces"][surface]["num_design_vars"] = np.zeros(input_dict["surfaces"][surface]["num_sections"],dtype=np.int32)

#Checks to see that at most only one of the options in af_load_ops or one of the options in manual_af_override is selected
if len(airfoil_spec_keys & input_dict["surfaces"][surface].keys()) > 1:
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ dependencies = [
"numpy>=1.19",
]
readme = "README.md"
version = "2.2.1" # this automatically updates __init__.py and setup_deprecated.py
version = "2.2.2" # this automatically updates __init__.py and setup_deprecated.py
# don't forget to change the value in meson.build!


Expand Down
Loading