Skip to content

Remove scaling of rays per point according to the number of neighbours? #160

@tlunttil

Description

@tlunttil

Currently the number of rays sent from each grid point is proportional to the number of its Delaynay neighbours. There doesn't seem to be any good reason for that and furthermore, the current implementation has some problems. Some buffers are scaled according to a (conservative) fixed estimate for the number of neighbours a grid point can have (essentially max_phot/ininphot). In most cases this just wastes memory, because the buffers are unnecessarily large. However, there is no check for the true number of neighbours, and it is, at least in theory, possible that the buffers are too small and the program crashes.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions