From f69013a05bac1a757c0ae05371085f63bca9a9f3 Mon Sep 17 00:00:00 2001 From: swryan Date: Thu, 14 Mar 2024 13:52:34 -0400 Subject: [PATCH] specify mode for tests that check derivs --- CADRE/test/test_derivatives.py | 2 +- CADRE/test/test_rk_deriv.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CADRE/test/test_derivatives.py b/CADRE/test/test_derivatives.py index 04c65b4..98447e2 100644 --- a/CADRE/test/test_derivatives.py +++ b/CADRE/test/test_derivatives.py @@ -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 diff --git a/CADRE/test/test_rk_deriv.py b/CADRE/test/test_rk_deriv.py index f66d7ce..8b373ab 100644 --- a/CADRE/test/test_rk_deriv.py +++ b/CADRE/test/test_rk_deriv.py @@ -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