LeanderSchlegel / CRPropa3

The new CRPropa
GNU General Public License v3.0
0 stars 0 forks source link

Nearest Neighbour Interpolation #5

Closed JulienDoerner closed 2 years ago

JulienDoerner commented 2 years ago

The Function nearestNeigbourInterpolation is only a private function that can not be used by the user and only calls the closestValue which is public. Therefor I suggest to leave nearestNeighbourInterpolation out and directly use closestValue in the interpolation. I think the only argument to keep it would be that it is easier to read with the seprate function.

LeanderSchlegel commented 2 years ago

That is a good suggestion, is done :)