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
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
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
Andreas Klöckner
grudge
Commits
f3e09e53
Commit
f3e09e53
authored
3 years ago
by
Thomas Gibson
Committed by
Andreas Klöckner
3 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Remove unneeded kernel tag
parent
0ee42643
No related branches found
No related tags found
No related merge requests found
Pipeline
#176207
passed
3 years ago
Stage: test
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
grudge/op.py
+4
-17
4 additions, 17 deletions
grudge/op.py
with
4 additions
and
17 deletions
grudge/op.py
+
4
−
17
View file @
f3e09e53
...
@@ -95,19 +95,6 @@ from grudge.trace_pair import ( # noqa: F401
...
@@ -95,19 +95,6 @@ from grudge.trace_pair import ( # noqa: F401
)
)
# {{{ Kernel tags
class
HasElementwiseMatvecTag
(
FirstAxisIsElementsTag
):
"""
A tag that is applicable to kernel programs indicating that
an element-wise matrix product is being performed. This indicates
that the first index corresponds to element indices and suggests that
the implementation should set element indices as the outermost
loop extent.
"""
# }}}
# {{{ Derivative operators
# {{{ Derivative operators
def
reference_derivative_matrices
(
actx
:
ArrayContext
,
element_group
):
def
reference_derivative_matrices
(
actx
:
ArrayContext
,
element_group
):
...
@@ -144,7 +131,7 @@ def _compute_local_gradient(dcoll: DiscretizationCollection, vec, xyz_axis):
...
@@ -144,7 +131,7 @@ def _compute_local_gradient(dcoll: DiscretizationCollection, vec, xyz_axis):
reference_derivative_matrices
(
actx
,
grp
),
reference_derivative_matrices
(
actx
,
grp
),
vec_i
,
vec_i
,
arg_names
=
(
"
inv_jac_t
"
,
"
ref_diff_mat
"
,
"
vec
"
),
arg_names
=
(
"
inv_jac_t
"
,
"
ref_diff_mat
"
,
"
vec
"
),
tagged
=
(
HasElementwiseMatvec
Tag
(),))
tagged
=
(
FirstAxisIsElements
Tag
(),))
for
grp
,
vec_i
,
inv_jac_t_i
in
zip
(
discr
.
groups
,
vec
,
inverse_jac_t
)
for
grp
,
vec_i
,
inv_jac_t_i
in
zip
(
discr
.
groups
,
vec
,
inverse_jac_t
)
)
)
...
@@ -316,7 +303,7 @@ def _apply_stiffness_transpose_operator(
...
@@ -316,7 +303,7 @@ def _apply_stiffness_transpose_operator(
vec_i
,
vec_i
,
inv_jac_t_i
,
inv_jac_t_i
,
arg_names
=
(
"
ref_stiffT_mat
"
,
"
jac
"
,
"
vec
"
,
"
inv_jac_t
"
),
arg_names
=
(
"
ref_stiffT_mat
"
,
"
jac
"
,
"
vec
"
,
"
inv_jac_t
"
),
tagged
=
(
HasElementwiseMatvec
Tag
(),))
tagged
=
(
FirstAxisIsElements
Tag
(),))
for
out_grp
,
in_grp
,
vec_i
,
ae_i
,
inv_jac_t_i
in
zip
(
out_discr
.
groups
,
for
out_grp
,
in_grp
,
vec_i
,
ae_i
,
inv_jac_t_i
in
zip
(
out_discr
.
groups
,
in_discr
.
groups
,
in_discr
.
groups
,
...
@@ -520,7 +507,7 @@ def _apply_mass_operator(
...
@@ -520,7 +507,7 @@ def _apply_mass_operator(
ae_i
,
ae_i
,
vec_i
,
vec_i
,
arg_names
=
(
"
mass_mat
"
,
"
jac
"
,
"
vec
"
),
arg_names
=
(
"
mass_mat
"
,
"
jac
"
,
"
vec
"
),
tagged
=
(
HasElementwiseMatvec
Tag
(),))
tagged
=
(
FirstAxisIsElements
Tag
(),))
for
in_grp
,
out_grp
,
ae_i
,
vec_i
in
zip
(
for
in_grp
,
out_grp
,
ae_i
,
vec_i
in
zip
(
in_discr
.
groups
,
out_discr
.
groups
,
area_elements
,
vec
)
in_discr
.
groups
,
out_discr
.
groups
,
area_elements
,
vec
)
...
@@ -624,7 +611,7 @@ def _apply_inverse_mass_operator(
...
@@ -624,7 +611,7 @@ def _apply_inverse_mass_operator(
jac_inv
,
jac_inv
,
ref_mass_inverse
,
ref_mass_inverse
,
vec_i
,
vec_i
,
tagged
=
(
HasElementwiseMatvec
Tag
(),))
tagged
=
(
FirstAxisIsElements
Tag
(),))
)
)
return
DOFArray
(
actx
,
data
=
tuple
(
group_data
))
return
DOFArray
(
actx
,
data
=
tuple
(
group_data
))
...
...
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