CosmoAI-AES / CosmoSim

Original repo from the BSc project Spring 2022
MIT License
1 stars 3 forks source link

Overflow and segmentation fault #101

Closed hgeorgsch closed 1 year ago

hgeorgsch commented 1 year ago

On nyquist we get segmentation fault on the very first simulation. (regressiontest.sh) On shannon, the same code gives an overflow warning and subsequent error exception trying to convert NaN to to int; this happens on the first point mass image.

hgeorgsch commented 1 year ago

The overflow happens in centreImage()

hgeorgsch commented 1 year ago

The cause seems to be the new code to transfer floating point cv::Mat to python. See #102

hgeorgsch commented 1 year ago

The problem was the wrong bitwise operation, changing OR to AND solved the problem.