Commit Graph
1638 Commits
Author SHA1 Message Date
Magne Sjaastad f81a2d8967 #12999 Add spacing to system parameters
Add spacing to RicFishbonesSystemParameters
Use 12.5 as default, use 18.5 for drillingExtendedParameters
Remove duplicated code
2025-11-10 14:58:55 +01:00
Magne Sjaastad c921299305 #13101 Fix update of ensemble calculation vectors 2025-11-10 14:58:55 +01:00
jonjenssen 567d1185a1 Add nullptr guard in case no valid main grid in view. 2025-11-10 14:58:55 +01:00
Jon Jenssen c62d48cec2 Add more nullptr guards 2025-11-10 14:58:55 +01:00
Magne Sjaastad 529f0ecf27 #13064 Crash when computing delta ensemble curves for ongoing simulation
When creating delta for an ongoing simulation, the length of time and value vectors can differ. Resize these vectors to make sure they have the same length to avoid crash.
2025-11-10 14:58:55 +01:00
Magne Sjaastad 6cef55b897 #13019 Remove assert from RiaSummaryTools::summaryCaseMainCollection() 2025-11-10 14:58:55 +01:00
Magne Sjaastad 626d68ec59 Avoids iterator invalidation in QwtPlot item lists
When working with a summary ensemble in a Debug build on Windows, a crash happened in RiuQwtPlotWidget::resetPlotCurveHighlighting(). When iterating over list of plot items, one pointer to item pointed to 0xddddddd, a clear indication that the underlying list had been updated during the loop and the iterator invalidated.

The change ensures that modifications to the item list during iteration do not cause unexpected behavior, particularly in scenarios involving grid lines and curve highlighting.

This is achieved by making a copy of the item list before iteration when modifications may occur. For cases where no add/remove will be performed during the iteration, a comment is added to clarify that it is safe to access the reference to the list.
2025-11-10 14:58:55 +01:00
Magne Sjaastad dfe5442dae Removes scripting capability of trajectory points
For large point arrays, the scripting causes overflow in the grpc communication. Disable scripting to make sure the grpc object size is below size threshold.
2025-11-10 14:58:55 +01:00
Magne Sjaastad 42c850b9eb #13000 Fishbones completion: Avoid overwrite of default values
Always call setSystemParameters after appendFishbonesSubs
2025-10-13 14:35:42 +02:00
Magne Sjaastad 77a258ae24 #12986 Fishbones completion: Add unit text for Lateral Diameter 2025-10-13 14:35:42 +02:00
Magne Sjaastad a236ae2051 Compute measured depth if not present on file (#12872)
* Refactors RigWellPathGeometryTools to namespace
* Refactors measured depth calculation to utility.
* Calculates MD if missing from well path data
2025-10-13 14:35:42 +02:00
Magne Sjaastad 31088c0ec7 Add guarding tying to mitigate reported segmentation fault
2025-10-06 12:48:32.779] [rotating_logger] [error] Stack trace:
  [0] manageSegFailure(int) at :0
  [1]  at :0
  [2] __dynamic_cast at :0
  [3] RimSummaryMultiPlot::updateReadOutLines(double, double) at :0
  [4] CoordinatePicker::trackerText(QPoint const&) const at :0
  [5] QwtPicker::trackerRect(QFont const&) const at :0
  [6] QwtPicker::updateDisplay() at :0
  [7] QwtPicker::begin() at :0
  [8] QwtPicker::transition(QEvent const*) at :0
  [9] QwtPicker::eventFilter(QObject*, QEvent*) at :0
  [10] QCoreApplicationPrivate::sendThroughObjectEventFilters(QObject*, QEvent*) at :0
  [11] QApplicationPrivate::notify_helper(QObject*, QEvent*) at :0
  [12] RiaGuiApplication::notify(QObject*, QEvent*) at :0
  [13] QCoreApplication::notifyInternal2(QObject*, QEvent*) at :0
  [14]  at :0
  [15] QApplicationPrivate::sendMouseEvent(QWidget*, QMouseEvent*, QWidget*, QWidget*, QWidget**, QPointer<QWidget>&, bool, bool) at :0
  [16]  at :0
  [17]  at :0
  [18] QApplicationPrivate::notify_helper(QObject*, QEvent*) at :0
  [19] RiaGuiApplication::notify(QObject*, QEvent*) at :0
  [20] QCoreApplication::notifyInternal2(QObject*, QEvent*) at :0
  [21] QGuiApplicationPrivate::processMouseEvent(QWindowSystemInterfacePrivate::MouseEvent*) at :0
  [22] QWindowSystemInterface::sendWindowSystemEvents(QFlags<QEventLoop::ProcessEventsFlag>) at :0
  [23]  at :0
  [24] g_main_context_dispatch at :0
  [25] g_main_context_iterate.isra.20 at :0
  [26] g_main_context_iteration at :0
  [27] QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) at :0
  [28] QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) at :0
  [29] QCoreApplication::exec() at :0
2025-10-13 14:35:42 +02:00
Magne Sjaastad ee94c43305 Fix typo and restore filter for tree view after update 2025-10-13 14:35:42 +02:00
Magne Sjaastad dfa1a57084 #12954 Update all ensemble curves on x address change
Include the x address when computing hash for the data source for ensemble curves.,
2025-10-13 14:35:42 +02:00
Magne Sjaastad 824c210119 Guards against null pointer use 2025-09-04 08:21:02 +02:00
Magne Sjaastad bec4c380c5 #12873 Make sure addresses are created on single summary case reload 2025-09-04 08:20:35 +02:00
Magne Sjaastad 917136fec8 Release 2025.09.0 2025-09-01 12:38:48 +02:00
Magne Sjaastad 649de047d0 Add resampling method to RiaCurveMerger
Delete unused parameter
2025-06-16 14:25:13 +02:00
Magne e8ddef71af Janitor fixes detected by clang-19 2025-06-10 13:31:35 +02:00
Magne Sjaastad 47f5e004a7 Performance improvements ensemble curves
* Do not create ensemble in initAfterRead
* Check if filter is active before update
* Do not recompute statistics on every loadData
* Removes unnecessary resampling
* MSVC: Add support for dynamic deoptimalization
* Make sure RFT plots are initialized based on curves in project file
* Make sure the progress dialog is always on top
* Add more progress info when loading project file
* Make sure names in RFT plots are updated
2025-06-10 10:52:18 +02:00
Magne Sjaastad 5f6b3ec44d #12535 Avoid use of caf::PdmPointer in async delete of objects
Remove the use of caf::PdmPointer in RifCalculatedSummaryCurveReader as these objects are only accessed and used only during the lifetime of the owning object.

Move caching of RimProject::current()->calculationCollection() to the constructor instead of the calling site.
2025-06-10 10:52:18 +02:00
jonjenssen 55a4bad0fb Add nullptr guards to avoid crash when trying to use well allocation plot with an ensemble 2025-06-10 10:52:18 +02:00
Magne Sjaastad d7d18ce9ab #12495 Refactors ensemble statistics handling
Removes the dedicated `SUMMARY_ENSEMBLE_STATISTICS` category and instead uses a `statisticsType` field within `RifEclipseSummaryAddress` to represent ensemble statistics.

This change simplifies the code and avoids potential confusion by representing statistics as attributes of existing summary types, rather than a separate category. It also improves code robustness.
2025-06-10 10:52:18 +02:00
Magne Sjaastad e66e40523a Avoid asserts to be able to open a misconfigured project 2025-06-10 10:52:18 +02:00
Magne Sjaastad 64ec98b6a4 #12472 Fix flaky calculation of contour map top value 2025-05-09 08:32:04 +02:00
Magne Sjaastad 18ba47c2ab #12470 Use value range slider instead of independent min and max value sliders
Make sure minimum value is always less than max and max value is always larger than min.
2025-05-09 08:32:04 +02:00
Magne Sjaastad 321ff4ad90 Create a menu for each ensemble in the plot
Create a QVariant using caf::PdmPointer, and send this variant to the feature. The feature converts the QVariant to an ensemble curve set.

Make sure the right-click menu in the summary plot shows the Create from filtered cases independent to the selection in project tree.
2025-05-09 08:32:04 +02:00
Magne Sjaastad c57eace568 #12455 Date format string and precision
Use date format string from preferences when date is displayed. Use default number of decimals.
2025-05-09 08:32:04 +02:00
Magne Sjaastad fa61fbb78b #12457 Move management of time axis annotations
Use RimTimeAxisAnnotationUpdater for management of annotation objects.
2025-05-09 08:32:04 +02:00
Magne Sjaastad 14294e400e Show time selection in curve filter object 2025-05-09 08:32:04 +02:00
Magne Sjaastad a744474657 Make sure the time fields are added only once 2025-05-09 08:32:04 +02:00
Magne Sjaastad b5731f5104 #12448 Recompute statistical curves in RFT plots on replace 2025-05-09 08:32:04 +02:00
Kristian Bendiksen 291ab218cd #12438 Fix crash on incomplete category result.
Fixes #12438.
2025-05-09 08:32:04 +02:00
Magne Sjaastad fae4623477 #12419 Avoid assert during load of simulation case
Validate incoming parameters before use
2025-05-09 08:32:04 +02:00
Magne Sjaastad 90eaf5b130 #12434 Use subscript for permability unit 2025-05-09 08:32:04 +02:00
Magne Sjaastad a4595167c2 Show selected realizations using X-cross symbol 2025-05-09 08:32:04 +02:00
Magne Sjaastad f96374a6b4 2025.04.0 Merge dev into main 2025-04-07 12:21:57 +02:00
Magne Sjaastad 77145fc69f Python: Enforce checking on script name to make sure conversion between camelCase and snake_case works correctly
* #12044 Python: Add Non-Darcy properties available in Python

* #12049 Python: Add checking for multiple consecutive upper case letters
The scripting keyword is transformed to snake_case for use in Python. When data in Python is sent back to ResInsight, the opposite operation happens. This concept works well for most variants of keywords, but there are some corner cases that is not working.

Add compile time checking to make sure that the scripting keywords are formatted correctly.

Fix keyword that has been formatted the wrong way and has never worked.

* Avoid running test if ResInsight executable path is not defined in env
* Make sure dash is allowed in enumeration text string
2025-01-13 09:06:54 +01:00
Magne Sjaastad 0f65762d57 #12037 Quick Access: Fix display of integer category values for filter 2025-01-13 09:06:54 +01:00
Jon Jenssen 479470b133 Fix broken filters in contour maps 2025-01-13 09:06:54 +01:00
Magne Sjaastad ab3b4ca063 #12020 Delay the call to updateConnectedEditors
Make sure the call to updateConnectedEditors happens after other slots have been processed. Also make sure that the call is done only once.
2025-01-13 09:06:54 +01:00
jonjenssen 711cb267fd Polygon UI updates (#11975)
* Polygon UI updates
2024-12-06 14:26:30 +01:00
Magne Sjaastad 996a10f781 Fix curve highlight for non-ensemble curves 2024-12-05 08:18:43 +01:00
Magne Sjaastad 39d19c9826 #11966 Fix visibility control of curve legends 2024-12-04 19:38:15 +01:00
Magne Sjaastad 586aefe0b6 Mark SUMO features with BETA 2024-12-04 18:47:07 +01:00
Magne Sjaastad b48b58ca14 #11386 Summary plot: TCPU and ELAPSED are cumulative vectors 2024-12-04 18:47:07 +01:00
Jon Jenssen d90dd91e29 Hide grid mesh lines in contour map view 2024-12-03 15:33:53 +01:00
jonjenssen eee6f36a0e Merge pull request #11952 from OPM/polygon_updates
Polygon command updates
2024-12-03 13:50:55 +01:00
Kristian Bendiksen bd3ef3f775 #11943 Contour Map: regenerate grid and projection on sampling factor change. 2024-12-02 09:38:52 +01:00
jonjenssen 9ec83836ed Better command support for multi-select of polygons 2024-11-29 23:43:03 +01:00