You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If the grid overlaps the boundaries of the actual simulation domain, it should include cells on the other side of the domain. The bounding box does not reflect that.
Not Working:
Coord<3> c(x, y, z);
box = grid->boundingBox();
if (box.inbounds(c))
{ … }
Workaround:
Coord<3> c(x, y, z);
Coord<3> relativeCoord = c - box.origin;
Coord<3> normalizedRelativeCoord =
LibGeoDecomp::Topologies::Torus<3>::Topology::normalize(relativeCoord, gridDimensions());
if (box.inBounds(normalizedRelativeCoord + box.origin))
{ … }
The text was updated successfully, but these errors were encountered:
If the grid overlaps the boundaries of the actual simulation domain, it should include cells on the other side of the domain. The bounding box does not reflect that.
Not Working:
Workaround:
The text was updated successfully, but these errors were encountered: