Skip to content
Snippets Groups Projects
Commit 542c99fa authored by Matt Wala's avatar Matt Wala
Browse files

Fix a loopy kerel error

parent 83acfcfd
No related branches found
No related tags found
No related merge requests found
......@@ -195,7 +195,7 @@ def flatten(ary: np.ndarray) -> np.ndarray:
def prg():
return make_loopy_program(
"{[iel,idof]: 0<=iel<nelements and 0<=idof<ndofs_per_element}",
"result[grp_start + iel*nunit_dofs + idof] = grp_ary[iel, idof]",
"result[grp_start + iel*ndofs_per_element + idof] = grp_ary[iel, idof]", # noqa
name="flatten")
result = actx.empty(group_starts[-1], dtype=ary.entry_dtype)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment