Open astrofrog opened 12 years ago
This is only really an issue for point sources, because it is the only source type where the starting position of a photon is exact, and may result in alignment with the grid walls, or cell vertices.
Actually, this could happen to any source provided that its dimensions are much smaller than the typical grid cell size.
In addition, even if the viewing angles are not aligned along walls, the current code will have difficulties with photons emitted from a point source that falls on a wall.
This has now been fixed for cartesian, spherical polar, and cylindrical polar grids.
When one or more of the viewing angles are along a wall, or pass through the corner or edges of the cells, the following warnings are raised:
and the photons get killed.