Conversation
Updates the code to use `offset_type` instead of `long` for representing file sizes and buffer sizes. This change addresses potential issues with large files where the size exceeds the limits of a `long` integer.
The test for reading simulation well data is disabled. This is likely due to ongoing issues or instability with the test or the data it relies on.
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
PR Code Suggestions ✨Explore these optional code suggestions:
|
||||||||||||
PR Type
Bug fix, Enhancement
Description
Replace
intwithoffset_typefor large file supportAdd overflow checks for buffer size calculations
Disable simulation well data test
Update submodule to newer version
Diagram Walkthrough
File Walkthrough
RifReaderEclipseOutput-Test.cpp
Add disabled simulation well data testApplicationLibCode/UnitTests/RifReaderEclipseOutput-Test.cpp
RifReaderEclipseWell.hRifEclipseUnifiedRestartFileAccessfor restart filesecl_kw.cpp
Replace int with offset_type for large file supportThirdParty/Ert/lib/ecl/ecl_kw.cpp
int sizewithoffset_type sizein structoffset_typefor indicesoffset_typeecl_kw.hpp
Update header declarations for offset_type usageThirdParty/Ert/lib/include/ert/ecl/ecl_kw.hpp
offset_typeinstead ofintfortio.c
Update fortio functions for large file supportThirdParty/Ert/lib/ecl/fortio.c
fortio_init_readreturn type tooffset_typefortio_fread_bufferto useoffset_typefor buffer sizeoffset_typefor large file supportfortio.h
Update fortio header for offset_type supportThirdParty/Ert/lib/include/ert/ecl/fortio.h
fortio_init_readdeclaration to returnoffset_typefortio_fread_bufferparameter type tooffset_typeopm-common
Update opm-common submodule versionThirdParty/custom-opm-common/opm-common
54c8efcd7e5a028c962162ea0a476bc3fcb98f29to
f5bf4892728824f34741ef1e47e8c45c87b1c4d0