Skip to content

Commit

Permalink
Update solve.py
Browse files Browse the repository at this point in the history
  • Loading branch information
loganbvh committed Sep 18, 2023
1 parent 4a4c9de commit 2023b82
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tdgl/solver/solve.py
Original file line number Diff line number Diff line change
Expand Up @@ -366,7 +366,9 @@ def update(
supercurrent + normal_current, use_cupy=use_cupy
)
if use_cupy:
get_A_induced_cupy[128, 1024](
threads_per_block = 1024
num_blocks = int(len(edges) / threads_per_block)
get_A_induced_cupy[num_blocks, threads_per_block](
J_site, areas, sites, edge_centers, new_A_induced
)
else:
Expand Down

0 comments on commit 2023b82

Please sign in to comment.