Skip to content

Array_gpu::operator= does not allocate correctly #31

@stijnh

Description

@stijnh

On the current main branch, I feel that operator= of Array_gpu is not implemented correctly. It first sets this->ncells and then checks if this->ncells == 0 to allocate memory if required. However, this well never happens since ncells was just set beforehand:

else if (this->ncells == 0)

I will fix this in a PR once I understand the Array class better.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions