Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
pyMOR
pymor
Commits
0ab99387
Commit
0ab99387
authored
Jul 08, 2022
by
René Fritze
Browse files
[test] slightly increase bbox tolerances in affine grid
parent
246fd62a
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/pymortests/affine_grid.py
View file @
0ab99387
...
...
@@ -354,7 +354,7 @@ def test_bounding_box(grid):
# compare with tolerance is necessary with very large domain boundaries values
# where the relative error in the centers computation introduces enough error to fail the test
# otherwise
rtol
,
atol
=
_scale_tols_if_domain_bad
(
g
,
rtol
=
1
e-12
,
atol
=
1
e-12
)
rtol
,
atol
=
_scale_tols_if_domain_bad
(
g
,
rtol
=
2
e-12
,
atol
=
2
e-12
)
assert
np
.
all
(
almost_less
(
bbox
[
0
],
g
.
centers
(
g
.
dim
),
rtol
=
rtol
,
atol
=
atol
))
assert
np
.
all
(
almost_less
(
g
.
centers
(
g
.
dim
),
bbox
[
1
],
rtol
=
rtol
,
atol
=
atol
))
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment