Skip to content

Commit

Permalink
Add arg names to geometric factor application, refine some comments
Browse files Browse the repository at this point in the history
  • Loading branch information
a-alveyblanc committed Aug 1, 2023
1 parent 22ffacd commit d0bd17e
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions grudge/op.py
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,8 @@


# {{{ Temporary tools for tensor product operators
# NOTE: Will possibly be removed in a future version of tensor product operator
# development since (I think) it is not entirely necessary
from pytools.tag import Tag
class OutputIsTensorProductDOFArrayOrdered(Tag):
pass
Expand Down Expand Up @@ -251,7 +253,8 @@ def compute_tensor_product_grad(actx, grp, diff_mat, vec, ijm):
vec = reshape_array_for_tensor_product_space(grp.space, vec)

# apply differentiation matrix to vec
# check len(vec.shape) since shape is expected to be (nelements, ndofs)
# check len(vec.shape) since shape is expected to be
# (nelements, nnodes1d, nnodes1d)
if len(vec.shape) == 3:
specs = ["il,elj->eij",
"jl,eil->eij"]
Expand Down Expand Up @@ -294,7 +297,8 @@ def compute_tensor_product_grad(actx, grp, diff_mat, vec, ijm):
"rei,ei->ei",
ijm[i],
grad[i],
tagged=(FirstAxisIsElementsTag(),))
tagged=(FirstAxisIsElementsTag(),)),
arg_names=("inv_jac_t", "vec")
for i in range(grad.shape[0])
])

Expand Down

0 comments on commit d0bd17e

Please sign in to comment.