Skip to content

Commit 8424712

Browse files
kaushikcfdinducer
authored andcommitted
attach axes tags to some terms in dt_geometric_factors
1 parent e41a809 commit 8424712

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

grudge/dt_utils.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -338,7 +338,10 @@ def dt_geometric_factors(
338338
actx.tag(NameHint(f"dt_geometric_{dd.as_identifier()}"),
339339
DOFArray(actx,
340340
data=tuple(
341-
actx.einsum("e,ei->ei", 1/sae_i, cv_i,
341+
actx.einsum(
342+
"e,ei->ei",
343+
1/sae_i,
344+
actx.tag_axis(1, DiscretizationDOFAxisTag(), cv_i),
342345
tagged=(FirstAxisIsElementsTag(),)) * dcoll.dim
343346
for cv_i, sae_i in zip(cell_vols, surface_areas)))))
344347

0 commit comments

Comments
 (0)