samurai icon indicating copy to clipboard operation
samurai copied to clipboard

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

Open pmatalon opened this issue 9 months ago • 0 comments

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

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

pmatalon avatar Apr 30 '25 15:04 pmatalon