Skip to content

Commit

Permalink
Merge pull request #49 from swryan/om331
Browse files Browse the repository at this point in the history
Specify mode for tests that check derivatives
  • Loading branch information
swryan authored Mar 14, 2024
2 parents 1eaf1af + f69013a commit 79aa4b7
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 79aa4b7

Please sign in to comment.