AMReXGridReader: Use std::size_t or vtkIdType instead of long where necessary
- this commit should allow opening files larger than 2GB on windows. - it uses `size_t`/`vtkIdType` instead of `long` when doing stream operations like `seekg`, `tellg`. earlier, it passed `long` (32-bit in windows) to `seekg`. As a result, arrays beyond the 2GB offset could not be read into the buffer. - see user report https://github.com/AMReX-Codes/amrex/issues/4167 and https://discourse.paraview.org/t/potential-length-overflow-for-large-data/15516
Showing
- Documentation/release/dev/fix-vtkAMReXGridReader-windows-larger-than-2gb-files.md 4 additions, 0 deletions...v/fix-vtkAMReXGridReader-windows-larger-than-2gb-files.md
- IO/AMR/vtkAMReXGridReaderInternal.cxx 21 additions, 20 deletionsIO/AMR/vtkAMReXGridReaderInternal.cxx
- IO/AMR/vtkAMReXGridReaderInternal.h 16 additions, 14 deletionsIO/AMR/vtkAMReXGridReaderInternal.h
Please register or sign in to comment