Skip to content

[Bug]: Algebra of set doesn't work as expected #321

@pmatalon

Description

@pmatalon

What happened?

See code below.

Input code

// This doesn't work
auto refine_subset = intersection(translate(boundaryCells, -i*translation), ca[level-1]).on(level-1);

// ... but this does, which is supposed to yield the same result
LevelCellArray<dim, TInterval> translated_boundary(translate(boundaryCells, -i * translation));
auto refine_subset = intersection(translated_boundary, ca[level - 1]).on(level - 1);

What is expected?

We shouldn't have to use a LevelCellArray as a workaround.

What is your operating system?

Mac OS

How did you install our software?

conda or mamba

Software version

0.23.0

Relevant log output

Code of Conduct

  • I agree to follow this project's Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions