Skip to content

Commit

Permalink
fixed shell index tensor size bug
Browse files Browse the repository at this point in the history
  • Loading branch information
mihaipgc committed Nov 8, 2023
1 parent d94c88c commit 0195671
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyscf_ipu/nanoDFT/cpp_shell_gen.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ std::tuple<py::array_t<int>, py::array_t<int>, int> compute_indices(int n_bas, p
py::buffer_info ao_loc_info = ao_loc_array.request();
int* ao_loc_ptr = static_cast<int*>(ao_loc_info.ptr);

py::ssize_t n_upper_bound = (n_bas * (n_bas) / 2) * (n_bas * (n_bas - 1) / 2);
py::ssize_t n_upper_bound = (py::ssize_t)(n_bas * (n_bas) / 2) * (n_bas * (n_bas - 1) / 2);
// py::print(n_upper_bound);
auto input_ijkl_array = py::array_t<int>({n_upper_bound, (py::ssize_t)4});
input_ijkl_array[py::make_tuple(py::ellipsis())] = -1;
Expand Down

0 comments on commit 0195671

Please sign in to comment.