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
When setting:
NSCALES=4
NMOMENTS=3
NX=4096
NY=4096
Run test_cleaners.sh, will occurs error:
terminate called after throwing an instance of 'std::bad_array_new_length'
Because in the code, we need to calculate the value of
nscales * nscales * nmoments * nmoments * ny * nx, which is beyond the limit of int type.
Changed the type from 'int' to 'long', it can run successfully. But "Cleaners Error" is huge.
When setting:
NSCALES=4
NMOMENTS=3
NX=4096
NY=4096
Run test_cleaners.sh, will occurs error:
terminate called after throwing an instance of 'std::bad_array_new_length'
Because in the code, we need to calculate the value of
nscales * nscales * nmoments * nmoments * ny * nx, which is beyond the limit of int type.
Changed the type from 'int' to 'long', it can run successfully. But "Cleaners Error" is huge.
So what will be the reason of such big error?
The text was updated successfully, but these errors were encountered: