Skip to content

Commit

Permalink
tuned check_partials parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
kanekosh committed Aug 2, 2020
1 parent 585525b commit c811e73
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion openaerostruct/aerodynamics/tests/test_functionals.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ def test(self):

comp = VLMFunctionals(surface=surfaces[0])

run_test(self, comp, complex_flag=True)
run_test(self, comp, complex_flag=True, step=1e-8)


if __name__ == '__main__':
Expand Down
7 changes: 4 additions & 3 deletions openaerostruct/aerodynamics/tests/test_geometry.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
from openaerostruct.geometry.utils import generate_mesh
from openaerostruct.utils.testing import run_test, get_default_surfaces

np.random.seed(224)

class Test(unittest.TestCase):

Expand Down Expand Up @@ -102,8 +103,8 @@ def test_derivs_wetted(self):

prob.run_model()

check = prob.check_partials(compact_print=True)
assert_check_partials(check, atol=3e-5, rtol=1e-5)
check = prob.check_partials(compact_print=True, step=1e-7)
assert_check_partials(check, atol=5e-5, rtol=1e-5)

def test_derivs_projected(self):
# This is a much richer test with the following attributes:
Expand Down Expand Up @@ -181,7 +182,7 @@ def test_derivs_projected(self):

check = prob.check_partials(compact_print=True)

assert_check_partials(check, atol=3e-5, rtol=1e-5)
assert_check_partials(check, atol=5e-5, rtol=1e-5)

def test_outputs(self):
surfaces = get_default_surfaces()
Expand Down

0 comments on commit c811e73

Please sign in to comment.