Commit Graph
542 Commits
Author SHA1 Message Date
Magne SjaastadandClaude Sonnet 4.5 1737217815 Fixes parquet API compatibility with vcpkg 2025.12.12
Updates parquet::arrow::OpenFile calls to use new API that returns
arrow::Result instead of taking an output parameter. Also updates
error message retrieval to use status().ToString() method.

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-01-05 17:34:57 +01:00
Magne Sjaastad 96eebdf8ef Enhances crash reporting for Application Insights
Refactors crash reporting to include structured stack trace data formatted as JSON for better integration with Application Insights.
2025-12-22 16:41:29 +01:00
Kristian Bendiksen 8f9b416563 #12876 Include RKB distance when importing RMSwell.
Fixes #12876.
2025-12-15 13:56:41 +01:00
Magne Sjaastad 102a9feb32 #13269 Read VFP data without unit conversion
- read VFP data using readers with no unit conversion
- remove existing unit conversion
- make sure correct units are displayed in UI for both Metric and Field
2025-12-08 15:58:05 +01:00
Magne Sjaastad 40078cf8a8 Add VFP table importers without unit conversion
The opm-common importers does unit conversion to SI. Create custom importers with no unit conversion.
2025-12-08 15:58:05 +01:00
Kristian Bendiksen 37ee50cc9e #13281 Improve unit system handling for Eclipse files
- Add shared utility functions in RifEclipseOutputFileTools:
  - unitValueToEnum(): Convert int unit value to optional enum
  - determineUnitSystem(): Apply unit preference hierarchy and log warnings
- Implement correct unit preference hierarchy: egrid > init > unrst
  (previously was unrst > init > egrid)
- Add validation and warning when different unit systems are detected
  across files
- Enhance grid unit parsing with debug logging to explicitly document
  support for "m" as abbreviation for "METRES"
2025-12-05 14:18:45 +01:00
Magne Sjaastad c00da5e8e1 #13275 Import available phases from INIT and UNRST
This change centralizes the logic for determining available phases from
various file formats (ECL, OPM) and data structures (INTEHEAD keyword)
into a single, well-defined function.

The new `RiaOpmParserTools::phasesFromInteheadValue` function now handles the
conversion from an integer phase indicator to a set of `PhaseType` enums.
This function is used in both the ECL and OPM readers.

Updates the `RifEclipseUnifiedRestartFileAccess` and `RifReaderEclipseOutput`
to use `RifEclipseOutputFileTools::findAvailablePhases` to get the available phases
2025-12-04 14:51:07 +01:00
Kristian Bendiksen 6d1a4eb35c egrid import: Fix restart header parse for opm-common reader.
Step numbers does not always start at 0.
2025-12-01 14:20:49 +01:00
Magne Sjaastad 544e9eedd9 Improve spell checker using codespell
* Configures automated spell checking with codespell
Adds GitHub workflows and configuration files for automated spell checking using `codespell`.

This includes:
- A workflow for checking pull requests and preventing new typos
- A workflow for automatically fixing typos in the main codebase
- Configuration files for `codespell` to ignore specific terms and file types
- Documentation on how to use and configure the spell checking workflows.

* Corrects minor spelling and grammar errors.
2025-11-19 10:25:32 +01:00
Magne Sjaastad 0b74a4accc Removes addOneBasedCellIndex function 2025-11-17 19:45:14 +01:00
Kristian Bendiksen 3a8d521bc2 Sector Export: fix bug comparing caf::VecIjk1 with caf::VecIjk0. 2025-11-17 13:04:13 +01:00
Kristian Bendiksen 2bba6afe10 Sector Export: dump with "INLINE" to workaround strange inserts. 2025-11-15 11:22:44 +01:00
Kristian Bendiksen 9f597c63f9 Sector Export: handle missing OPERNUM.
Also use keyword when inserting in deck.
2025-11-15 11:22:44 +01:00
jonjenssen eb08ceeedc Fix overwriting wrong keyword in some cases 2025-11-14 23:19:41 +01:00
Kristian Bendiksen 38c691d9a4 Refactor: Update usage of caf::VecIjk. 2025-11-14 14:44:21 +01:00
Kristian Bendiksen b1646d9a1f #12950 Generate BCCON/BCPROP for simulation input. 2025-11-12 08:39:20 +01:00
Kristian Bendiksen 4291ebd91c Refactor: use PROPS name from OPM common. 2025-11-12 08:39:20 +01:00
JJ 39c2282904 Handle active cells in files with thermal data (rockv) (#13159)
* Handle active cells in files with thermal data from intersect
2025-11-12 07:13:24 +01:00
Magne Sjaastad 5e7c3dd1f1 #13095 Avoid error message trying to read data not present in file 2025-11-10 13:19:47 +01:00
Magne Sjaastad be7a01d0cf #13147 Simplifies summary import options
Removes ensemble summary import mode as separate cases import is not supported.

Simplifies the UI by removing the ensemble import option, and updates the logic to handle summary import mode correctly by only supporting skip or unified imports. If separated cases is required for a single summary case, this can be activated by using the import dialog.

Adds logic to initialize after read to ensure that if SummaryImportMode is SEPARATE_CASES, it changes to NOT_IMPORT.
2025-11-10 13:07:21 +01:00
jonjenssen a5d4e358ae Clean up keyword generators 2025-11-07 14:46:35 +01:00
JJ 6286a34297 Wellplanning: use updated MSW table data api (#13142)
* Update to use new table variable names aligned with opm common naming.
2025-11-07 10:05:53 +01:00
Magne Sjaastad de6a2a7aa8 #13137 Make sure calculated vectors appears in tree view
When populating the addresses to be displayed in the tree view, the native file readers must be populated first. The calculated addresses depend on addresses available in native readers.
2025-11-06 11:40:03 +01:00
Magne Sjaastad a693aa6d09 #13062 Make search for restart header file more robust
Refactors restart file name retrieval to use preferences for reader mode.

Simplifies logic by removing separate OPM-specific retrieval methods, and
instead uses a unified method that dynamically selects the appropriate
reader based on user preferences.

Adds fallback mechanism to read restart file paths from SMSPEC files when
the RESTART keyword is missing in ESMRY files generated by ResInsight.

Corrects path handling for restart files by adjusting paths relative to the
header file.
2025-11-05 06:38:37 +01:00
Kristian Bendiksen 92f2b887ad RifOpmFlowDeckFile: fix problem when replacing keyword in EDIT section. 2025-11-03 09:56:19 +01:00
Kristian Bendiksen 1cc1073af0 Remove MAPAXES keyword (for now). 2025-11-03 09:56:19 +01:00
Kristian Bendiksen 241cc34ed4 Find last created opernum. 2025-11-03 09:56:19 +01:00
Kristian Bendiksen 788e054734 Export sector model: Set opernum in regdims. 2025-11-03 09:56:19 +01:00
Kristian Bendiksen 864c56866d Sector Export: fix well properties in deck file. 2025-11-03 09:56:19 +01:00
Kristian Bendiksen 2f3c0480fc Thermal Fracture Import: block fracture without time steps. 2025-10-31 15:52:23 +01:00
Kristian Bendiksen 107a4dfe95 Thermal Fracture Import: handle more date time formats. 2025-10-31 15:52:23 +01:00
Magne Sjaastad f384b5ef38 Adds helper functions to table formatter 2025-10-31 08:11:19 +01:00
JJ 948d6d82a6 Well planning: prepare for improved MSW handling (#13096)
* Refactor MSW data handling in opm flow job
2025-10-30 11:57:22 +01:00
jonjenssen bc48a11524 Fix warning with qt 6.10 2025-10-27 05:48:23 +01:00
Magne Sjaastad c75b2a1c6d Revert "Avoid small allocation on every read of data from resdata"
This reverts commit ea06cdc291.
2025-10-26 13:37:48 +01:00
Kristian Bendiksen 4e736a8cc0 Refactor: move opm-flow deck keyword generation to factory. 2025-10-24 19:33:35 +02:00
Kristian Bendiksen 2a82ee4670 Simulation Input Export: handle faults. 2025-10-24 19:33:35 +02:00
Kristian Bendiksen 7519eee8ae Extract method for generating faults. 2025-10-24 19:33:35 +02:00
JJ 991e693f4d WELSPECS and COMPDAT export improvements (#13068)
* Generate keywords directly.
* Make sure ensemble settings in duplicated job is reset.
* Use same sort as file export
2025-10-24 11:10:25 +02:00
Magne Sjaastad ea06cdc291 Avoid small allocation on every read of data from resdata 2025-10-23 16:14:12 +02:00
Kristian Bendiksen b329318e05 Replace more keywords. 2025-10-22 16:20:50 +02:00
Kristian Bendiksen ebb8d62eb6 Replace values in deck file values. 2025-10-22 16:20:50 +02:00
Kristian Bendiksen 2392a6dfa1 Refactor: extract method for getting sector data. 2025-10-22 16:20:50 +02:00
Kristian Bendiksen c38819bac7 CSV Parser: include line number in error message. 2025-10-17 07:52:42 +02:00
Kristian Bendiksen 2b974abfd1 Refactor CSV Parser: Modernize casts. 2025-10-17 07:52:42 +02:00
Kristian Bendiksen 4a4941f759 CSV Parser: use cell separator when determining layout type. 2025-10-17 07:52:42 +02:00
Kristian Bendiksen dddb206dc4 Refactor CSV parser: Modernize enum. 2025-10-17 07:52:42 +02:00
Kristian Bendiksen 7ab1c62b30 Refactor CSV parser: Improve error handling in openDataStream. 2025-10-17 07:52:42 +02:00
Kristian Bendiksen c6da9ad8a8 Refactor CSV parser: Extract method for parsing date time. 2025-10-17 07:52:42 +02:00
Kristian Bendiksen c17736a232 Refactor CSV parser: Refactor to use lambda. 2025-10-17 07:52:42 +02:00