Skip to content

Update surfio to latest and improve resdata robustness#14005

Merged
magnesj merged 2 commits into
devfrom
14004-update-file-import-libraries
May 19, 2026
Merged

Update surfio to latest and improve resdata robustness#14005
magnesj merged 2 commits into
devfrom
14004-update-file-import-libraries

Conversation

@magnesj
Copy link
Copy Markdown
Member

@magnesj magnesj commented May 18, 2026

Updates the surfio submodule to 0.0.20. The new release introduces a parse_number/parse_number.h header that requires either std::from_chars float support or the fast_float library. ResInsight's custom-surfio wrapper now sets STD_FROM_CHARS_FLOAT_SUPPORT=0 and links FastFloat::fast_float (already declared in vcpkg.json)

Closes #14004.

@magnesj magnesj force-pushed the 14004-update-file-import-libraries branch from 0cc2ec8 to a7e9765 Compare May 18, 2026 12:02
@magnesj magnesj requested a review from kriben May 18, 2026 12:20
@jonjenssen
Copy link
Copy Markdown
Collaborator

Try to avoid the "util_abort" calls in the ecl code if possible. Those will close ResInsight if an error happens.

Guard zero-length keywords in ecl_kw_max_min, increase grdecl buffer to 256 and bound sscanf widths, and validate dimensions and keyword sizes (COORD, ZCORN, MAPAXES, CORSNUM, ACTNUM) when loading GRDECL grids.
@magnesj magnesj force-pushed the 14004-update-file-import-libraries branch from a7e9765 to 029726b Compare May 18, 2026 18:34
@magnesj
Copy link
Copy Markdown
Member Author

magnesj commented May 18, 2026

Try to avoid the "util_abort" calls in the ecl code if possible. Those will close ResInsight if an error happens.

Replaced with logging and early return

@magnesj magnesj changed the title #14004 surfio: Update to 0.0.20 and link fast_float from vcpkg Update surfio to latest and improve resdata robustness May 18, 2026
@magnesj magnesj merged commit 4e65583 into dev May 19, 2026
18 checks passed
@magnesj magnesj deleted the 14004-update-file-import-libraries branch May 19, 2026 05:58
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

Successfully merging this pull request may close these issues.

Update file import libraries

3 participants