Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: unique_id fails when the number of cells is large relative to the element type #738

Open
kordejong opened this issue Nov 21, 2024 · 0 comments

Comments

@kordejong
Copy link
Member

Describe the bug

See title.

Expected behaviour

For out of range IDs no-data should be written

Steps to reproduce

array = lfr.create_array(100, 100, lfr.boolean_element_type, 1)
lfr.unique_id(array, np.int8)

Additional information

The code crashes in a debug build. Not sure what happens in a release build.

{file}: xxx/lue/source/framework/algorithm/include/lue/framework/algorithm/definition/unique_id.hpp
{line}: 21
{function}: IDPartition lue::detail::unique_id_partition(const Policies&, const ConditionPartition&, lue::ElementT<IDPartition>) [with Policies = lue::policy::DefaultValuePolicies<lu
e::policy::AllValuesWithinDomain<unsigned char>, lue::policy::detail::TypeList<signed char>, lue::policy::detail::TypeList<unsigned char> >; ConditionPartition = lue::ArrayPartition<
unsigned char, 2>; IDPartition = lue::ArrayPartition<signed char, 2>; lue::ElementT<IDPartition> = signed char]
{what}: Assertion 'start_value > ElementT<IDPartition>{0}' failed: HPX(assertion_failure)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant