Closed alexfikl closed 3 years ago
Managed to find a use for this in pytential. When unflattening an array, went with
pytential
template_ary = discr.nodes()[0] ary = unflatten(template_ary, ary, actx)
to replace
ary = unflatten(actx, discr, ary)
but this doesn't work when ary is complex, which happens for e.g. Helmholtz.
ary
Maybe it's worth adding a strict=True to unflatten to skip checking types and strides?
strict=True
unflatten
Managed to find a use for this in
pytential
. When unflattening an array, went withto replace
but this doesn't work when
ary
is complex, which happens for e.g. Helmholtz.Maybe it's worth adding a
strict=True
tounflatten
to skip checking types and strides?