Skip to content

Commit

Permalink
specify mode for tests that check derivs
Browse files Browse the repository at this point in the history
  • Loading branch information
swryan committed Mar 14, 2024
1 parent 1eaf1af commit f69013a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CADRE/test/test_derivatives.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ def setup(self, compname, inputs, state0):
self.prob.model.add_subsystem('indep', indep, promotes=['*'])
self.prob.model.add_subsystem('comp', comp, promotes=['*'])

self.prob.setup()
self.prob.setup(mode='fwd')

def compare_derivatives(self, var_in, var_out, rel_error=False):
# check totals
Expand Down
2 changes: 1 addition & 1 deletion CADRE/test/test_rk_deriv.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ def test_rk_with_time_invariant(self):
prob.model.add_subsystem('indeps', indeps, promotes=['*'])
prob.model.add_subsystem('rktest', rktest, promotes=['*'])

prob.setup()
prob.setup(mode='fwd')
prob.run_model()

# check partials
Expand Down

0 comments on commit f69013a

Please sign in to comment.