Skip to content

Commit

Permalink
Add unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
gaohao95 committed Jun 22, 2024
1 parent dbeda06 commit 4e6049d
Show file tree
Hide file tree
Showing 4 changed files with 315 additions and 114 deletions.
112 changes: 0 additions & 112 deletions examples/off-surface-eval.py

This file was deleted.

2 changes: 1 addition & 1 deletion pytential/qbx/distributed.py
Original file line number Diff line number Diff line change
Expand Up @@ -810,7 +810,7 @@ def exec_compute_potential_insn_fmm(self, actx: PyOpenCLArrayContext,

return results, timing_data
else:
results = []
results = [(o.name, None) for o in insn.outputs]
return results, timing_data


Expand Down
2 changes: 1 addition & 1 deletion pytential/symbolic/execution.py
Original file line number Diff line number Diff line change
Expand Up @@ -376,7 +376,7 @@ def exec_assign(self, actx: PyOpenCLArrayContext, insn, bound_expr, evaluate):
if self.comm.Get_rank() == 0:
return super().exec_assign(actx, insn, bound_expr, evaluate)
else:
return {}
return [(name, None) for name in insn.names]

def exec_compute_potential_insn(
self, actx: PyOpenCLArrayContext, insn, bound_expr, evaluate):
Expand Down
Loading

0 comments on commit 4e6049d

Please sign in to comment.