Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Running Anura3D on large Hardrives #7

Open
WaveHello opened this issue Nov 24, 2023 · 1 comment
Open

Running Anura3D on large Hardrives #7

WaveHello opened this issue Nov 24, 2023 · 1 comment

Comments

@WaveHello
Copy link
Owner

WaveHello commented Nov 24, 2023

The condition that checks if there is enough space on your hard drive to run a model causes an integer value to overflow if the hard drive is too large. The problem happens in WriteResultData.FOR.

@WaveHello
Copy link
Owner Author

Added a condition that forces the float value down to the maximum value of the integer. Could have also used a larger integer type.

! int has max value of 2147483647. Check that the available space isn't greater than 2147483647 * 1024 bytes
        if (I8_Total >  2147483647d0 * 1024d0) then
          I8_Total = 2147483647 * 1024
        endif
        
        kBSpace = nint(I8_Total/1024d0**1)
        RETURN
      else
        kBSpace = -1
      end if

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant