Skip to content

Type Defination Error #33

@LiuXin2333

Description

@LiuXin2333

Hi. I am recently learning your codes. The version for numba is 0.57 and numpy is 1.24. But I met a problem:
Traceback (most recent call last):
File "D:\l\dsmc-python-master\dsmc-python-master\examples\hypersonic_flow\hypersonic_flow.py", line 75, in
solver.advance(dt)
File "C:\Users\57774\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\dsmc\dsmc.py", line 255, in advance
self.octree.build(positions)
File "C:\Users\57774\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\dsmc\octree.py", line 226, in build
self._progress(i, positions)
File "C:\Users\57774\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\dsmc\octree.py", line 269, in _progress
self.permutations, N = _sort(self.permutations, self.cell_boxes[self.leafs[leaf_id].id_first_child + i], positions, new_leaf.elem_offset, self.leafs[leaf_id].number_elements - offset)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\57774\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\numba\core\dispatcher.py", line 703, in _explain_matching_error
raise TypeError(msg)
TypeError: No matching definition for argument type(s) array(int32, 1d, C), array(float64, 2d, C), array(float64, 2d, C), int64, int64

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions