Skip to content

Commit 6e6fd7f

Browse files
committed
reduce tol
1 parent 733d758 commit 6e6fd7f

File tree

1 file changed

+12
-6
lines changed

1 file changed

+12
-6
lines changed

toolchain/mfc/test/case.py

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -213,21 +213,27 @@ def __str__(self) -> str:
213213
return f"tests/[bold magenta]{self.get_uuid()}[/bold magenta]: {self.trace}"
214214

215215
def compute_tolerance(self) -> float:
216+
217+
tolerance = 1e-12
218+
216219
if self.params.get("hypoelasticity", 'F') == 'T':
217-
return 1e-7
220+
tolerance = 1e-7
218221

219222
if any(self.params.get(key, 'F') == 'T' for key in ['relax', 'ib', 'qbmm', 'bubbles']):
220-
return 1e-10
223+
tolerance = 1e-10
221224

222225
if self.params.get("low_Mach", 'F') == 1 or self.params.get("low_Mach", 'F') == 2:
223-
return 1e-10
226+
tolerance = 1e-10
224227

225228
if self.params.get("acoustic_source", 'F') == 'T':
226229
if "acoustic(1)%pulse" in self.params and self.params["acoustic(1)%pulse"] == 3: # Square wave
227-
return 1e-5
228-
return 3e-12
230+
tolerance = 1e-5
231+
tolerance = 3e-12
232+
233+
if self.params["weno_order"] == 7:
234+
tolerance = 1e-11
229235

230-
return 1e-12
236+
return tolerance
231237

232238
@dataclasses.dataclass
233239
class TestCaseBuilder:

0 commit comments

Comments
 (0)