Skip to content

list_neighbours_along_trajectory() calculation fails in 2D systems #145

@matteobecchi

Description

@matteobecchi

When using lens.list_neighbours_along_trajectory() with a 2D system (meaning, all z-coordinates are identical) without PBC, the simulation box is computed from scratch and has zero volume, which causes the calculations to crash.

Even if the universe has a well-defined box, that box is ignored and computed from scratch.

We could either add a "two_dim" bool parameter, or change the way the box and PBC are set up.

It is possible that LENS also has the same issue, since the logic for the PBC and box management is similar.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions