Open kaushikcfd opened 2 years ago
I was able to do
knl = lp.precompute(knl, "subst",
sweep_inames=["ifacedof", "iel_inner"],
storage_axes=["e", "j"], # Had to add this argument
precompute_inames=["i0", "i1"],
precompute_outer_inames=frozenset(["iel_outer", "iface"]),
default_tag=None)
and get the desired precompute_inames
. I think this behavior is unclear (and undocumented) i.e. should the precompute_inames
be always accompanies with storage_axes
, if so my earlier approach should have seen an exception/warning.
MWE:
generates the following kernel:
Notice how it is
subst_0[i1, j]
and notsubst_0[i0, i1]
.