Skip to content

Commit

Permalink
conversion between int32 and uint64
Browse files Browse the repository at this point in the history
  • Loading branch information
srosenbu committed Nov 29, 2024
1 parent 98eb868 commit f6e5681
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python/comfe/cdm.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,8 +127,8 @@ def __init__(
cells = [] if cells is None else cells
for cell_array in cells:
number_of_ips = quadrature_rule.weights.size
ips_array = [cell_array * number_of_ips + i for i in range(number_of_ips)]
ips.append(np.concatenate(ips_array, dtype=np.uint64, axis=None))
ips_array = [cell_array.astype(np.uint64) * number_of_ips + i for i in range(number_of_ips)]
ips.append(np.concatenate(ips_array, axis=None))

model = ConstitutiveModel(
rust_model,
Expand Down

0 comments on commit f6e5681

Please sign in to comment.