Skip to content

Commit

Permalink
we actually need recordings here
Browse files Browse the repository at this point in the history
  • Loading branch information
kanekosh committed Aug 5, 2021
1 parent 1482c3f commit ed17533
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions openaerostruct/tests/test_aerostruct.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,11 @@ def test(self):
prob.driver = om.ScipyOptimizeDriver()
prob.driver.options['tol'] = 1e-9

recorder = om.SqliteRecorder("aerostruct.db")
prob.driver.add_recorder(recorder)
prob.driver.recording_options['record_derivatives'] = True
prob.driver.recording_options['includes'] = ['*']

# Setup problem and add design variables, constraint, and objective
prob.model.add_design_var('wing.twist_cp', lower=-10., upper=15.)
prob.model.add_design_var('wing.thickness_cp', lower=0.01, upper=0.5, scaler=1e2)
Expand Down

0 comments on commit ed17533

Please sign in to comment.