Skip to content

Commit

Permalink
Tighten tolerances more
Browse files Browse the repository at this point in the history
  • Loading branch information
A-CGray committed Jun 1, 2023
1 parent c8db3e5 commit 95c48b6
Show file tree
Hide file tree
Showing 12 changed files with 24 additions and 24 deletions.
4 changes: 2 additions & 2 deletions tests/constitutive_tests/test_basic_beam_constitutive.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,15 @@ class ConstitutiveTest(unittest.TestCase):
def setUp(self):
# fd/cs step size
if TACS.dtype is complex:
self.dh = 1e-50
self.dh = 1e-200
self.rtol = 1e-11
else:
self.dh = 1e-8
self.rtol = 1e-3
self.dtype = TACS.dtype


self.atol = self.rtol
self.atol = np.clip(1e-5*self.rtol, 1e-8, 1e-14)
self.print_level = 0

# Set element index
Expand Down
8 changes: 4 additions & 4 deletions tests/constitutive_tests/test_composite_shell_constitutive.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,16 @@ class ConstitutiveTest(unittest.TestCase):
def setUp(self):
# fd/cs step size
if TACS.dtype is complex:
self.dh = 1e-50
self.rtol = 1e-9
self.dh = 1e-200
self.rtol = 1e-12
else:
self.dh = 1e-8
self.rtol = 1e-3
self.dtype = TACS.dtype


self.atol = self.rtol
self.print_level = 0
self.atol = np.clip(1e-5*self.rtol, 1e-8, 1e-14)
self.print_level = 2

# Set element index
self.elem_index = 0
Expand Down
4 changes: 2 additions & 2 deletions tests/constitutive_tests/test_dof_spring_constitutive.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,15 @@ class ConstitutiveTest(unittest.TestCase):
def setUp(self):
# fd/cs step size
if TACS.dtype is complex:
self.dh = 1e-50
self.dh = 1e-200
self.rtol = 1e-11
else:
self.dh = 1e-8
self.rtol = 1e-3
self.dtype = TACS.dtype


self.atol = self.rtol
self.atol = np.clip(1e-5*self.rtol, 1e-8, 1e-14)
self.print_level = 0

# Set element index
Expand Down
4 changes: 2 additions & 2 deletions tests/constitutive_tests/test_general_mass_constitutive.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,15 @@ class ConstitutiveTest(unittest.TestCase):
def setUp(self):
# fd/cs step size
if TACS.dtype is complex:
self.dh = 1e-50
self.dh = 1e-200
self.rtol = 1e-11
else:
self.dh = 1e-8
self.rtol = 1e-3
self.dtype = TACS.dtype


self.atol = self.rtol
self.atol = np.clip(1e-5*self.rtol, 1e-8, 1e-14)
self.print_level = 0

# Set element index
Expand Down
4 changes: 2 additions & 2 deletions tests/constitutive_tests/test_general_spring_constitutive.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,15 @@ class ConstitutiveTest(unittest.TestCase):
def setUp(self):
# fd/cs step size
if TACS.dtype is complex:
self.dh = 1e-50
self.dh = 1e-200
self.rtol = 1e-11
else:
self.dh = 1e-8
self.rtol = 1e-3
self.dtype = TACS.dtype


self.atol = self.rtol
self.atol = np.clip(1e-5*self.rtol, 1e-8, 1e-14)
self.print_level = 0

# Set element index
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ class ConstitutiveTest(unittest.TestCase):
def setUp(self):
# fd/cs step size
if TACS.dtype is complex:
self.dh = 1e-50
self.dh = 1e-200
self.rtol = 1e-11
self.atol = 1e-5
else:
Expand Down
4 changes: 2 additions & 2 deletions tests/constitutive_tests/test_iso_shell_constitutive.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,15 @@ class ConstitutiveTest(unittest.TestCase):
def setUp(self):
# fd/cs step size
if TACS.dtype is complex:
self.dh = 1e-50
self.dh = 1e-200
self.rtol = 1e-11
else:
self.dh = 1e-8
self.rtol = 1e-3
self.dtype = TACS.dtype


self.atol = self.rtol
self.atol = np.clip(1e-5*self.rtol, 1e-8, 1e-14)
self.print_level = 0

# Set element index
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ class ConstitutiveTest(unittest.TestCase):
def setUp(self):
# fd/cs step size
if TACS.dtype is complex:
self.dh = 1e-50
self.dh = 1e-200
self.rtol = 1e-11
self.atol = 1e-5
else:
Expand Down
4 changes: 2 additions & 2 deletions tests/constitutive_tests/test_pcm_constitutive.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,15 @@ class ConstitutiveTest(unittest.TestCase):
def setUp(self):
# fd/cs step size
if TACS.dtype is complex:
self.dh = 1e-50
self.dh = 1e-200
self.rtol = 1e-11
else:
self.dh = 1e-8
self.rtol = 1e-3
self.dtype = TACS.dtype


self.atol = self.rtol
self.atol = np.clip(1e-5*self.rtol, 1e-8, 1e-14)
self.print_level = 0

# Set element index
Expand Down
4 changes: 2 additions & 2 deletions tests/constitutive_tests/test_plane_stress_constitutive.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,15 @@ class ConstitutiveTest(unittest.TestCase):
def setUp(self):
# fd/cs step size
if TACS.dtype is complex:
self.dh = 1e-50
self.dh = 1e-200
self.rtol = 1e-11
else:
self.dh = 1e-8
self.rtol = 1e-3
self.dtype = TACS.dtype


self.atol = self.rtol
self.atol = np.clip(1e-5*self.rtol, 1e-8, 1e-14)
self.print_level = 0

# Set element index
Expand Down
4 changes: 2 additions & 2 deletions tests/constitutive_tests/test_point_mass_constitutive.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,15 @@ class ConstitutiveTest(unittest.TestCase):
def setUp(self):
# fd/cs step size
if TACS.dtype is complex:
self.dh = 1e-50
self.dh = 1e-200
self.rtol = 1e-11
else:
self.dh = 1e-8
self.rtol = 1e-3
self.dtype = TACS.dtype


self.atol = self.rtol
self.atol = np.clip(1e-5*self.rtol, 1e-8, 1e-14)
self.print_level = 0

# Set element index
Expand Down
4 changes: 2 additions & 2 deletions tests/constitutive_tests/test_solid_constitutive.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,15 @@ class ConstitutiveTest(unittest.TestCase):
def setUp(self):
# fd/cs step size
if TACS.dtype is complex:
self.dh = 1e-50
self.dh = 1e-200
self.rtol = 1e-11
else:
self.dh = 1e-8
self.rtol = 1e-3
self.dtype = TACS.dtype


self.atol = self.rtol
self.atol = np.clip(1e-5*self.rtol, 1e-8, 1e-14)
self.print_level = 0

# Set element index
Expand Down

0 comments on commit 95c48b6

Please sign in to comment.