Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
grudge
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Alexandru Fikl
grudge
Commits
343e4817
Commit
343e4817
authored
4 years ago
by
Andreas Klöckner
Browse files
Options
Downloads
Plain Diff
Merge branch 'master' into array-context
parents
101422c7
fbac4a0b
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
test/test_grudge.py
+2
-2
2 additions, 2 deletions
test/test_grudge.py
with
2 additions
and
2 deletions
test/test_grudge.py
+
2
−
2
View file @
343e4817
...
...
@@ -144,11 +144,11 @@ def test_mass_mat_trig(ctx_factory, ambient_dim, quad_tag):
num_integral_1
=
np
.
dot
(
ones_volm
,
actx
.
to_numpy
(
flatten
(
mass_op
(
f
=
f_quad
))))
err_1
=
abs
(
num_integral_1
-
true_integral
)
assert
err_1
<
5.0e-10
,
err_1
assert
err_1
<
1e-9
,
err_1
num_integral_2
=
np
.
dot
(
f_volm
,
actx
.
to_numpy
(
flatten
(
mass_op
(
f
=
ones_quad
))))
err_2
=
abs
(
num_integral_2
-
true_integral
)
assert
err_2
<
5
.0e-
10
,
err_2
assert
err_2
<
1
.0e-
9
,
err_2
if
quad_tag
is
sym
.
QTAG_NONE
:
# NOTE: `integral` always makes a square mass matrix and
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment