Skip to content

Commit

Permalink
Fix dtype for send-size (#56)
Browse files Browse the repository at this point in the history
  • Loading branch information
jorgensd authored Feb 8, 2024
1 parent 6087d50 commit a8886d4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/adios4dolfinx/comm_helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ def send_dofmap_and_recv_values(
process_pos_indicator = (owners_transposed == dest_ranks)

# Compute number of dofs owned by each rank
out_size = np.count_nonzero(process_pos_indicator, axis=0)
out_size = np.count_nonzero(process_pos_indicator, axis=0).astype(np.int32)

# Compute send offset based of number of dofs owned by each rank
offsets = np.zeros(len(out_size) + 1, dtype=np.intc)
Expand Down Expand Up @@ -169,7 +169,7 @@ def send_and_recv_cell_perm(
process_pos_indicator = (owners_transposed == np.asarray(dest))

# Compute number of cells owned by each rank
out_size = np.count_nonzero(process_pos_indicator, axis=0)
out_size = np.count_nonzero(process_pos_indicator, axis=0).astype(np.int32)

# Compute send offset based of number of cells owned by each rank
offsets = np.zeros(len(out_size) + 1, dtype=np.intc)
Expand Down Expand Up @@ -255,7 +255,7 @@ def send_dofs_and_recv_values(
process_pos_indicator = (owners_transposed == dest_ranks)

# Compute number of dofs owned by each rank
out_size = np.count_nonzero(process_pos_indicator, axis=0)
out_size = np.count_nonzero(process_pos_indicator, axis=0).astype(np.int32)

# Compute send offset based of number of dofs owned by each rank
dofs_offsets = np.zeros(len(out_size) + 1, dtype=np.intc)
Expand Down

0 comments on commit a8886d4

Please sign in to comment.