Commit Graph

17601 Commits

Author SHA1 Message Date
Magne Sjaastad
2814b92055
Qt6: Adjustments (#11804)
* Qt6: Avoid insertWidget, use addWidget
In Qt6, the insertWidget function checks if the index parameter is valid based on current widgets present in the layout. This is error prone, and use addWidget to avoid manual counting of index.

* Disable use of Qt keyword foreach

* Replace use of QRegExp with QRegularExpression
Replace use of QRegExp with QRegularExpression
Remove dependency on qt5compat module
Simplify an expression based on review

* Remove Qt5 ifdefs

* Guard access out of bounds seen in debug build

* Avoid reuse of string variable

* Disconnect all signals from the QOpenGLContext
The call stack when this assert happens indicates that there are more signals to be disconnected from the object. Crash is fixed by disconnecting all signals.

Assert seen in debug build:

ASSERT failure in caf::Viewer: "Called object is not of the correct type (class destructor may have already run)", file C:\Qt\6.6.3\msvc2019_64\include\QtCore/qobjectdefs_impl.h, line 130

* Fix issue related to delete of a linked view
Guard null pointer use in view linker. Remove complicated cleanup in destructor in Rim3dVew.
2024-10-28 13:09:18 +01:00
Magne Sjaastad
bb047e82d3 #11827 Use FetchContent_MakeAvailable
FetchContent_Populate() is deprecated
2024-10-28 13:08:18 +01:00
Magne Sjaastad
3a6e7997f1 Merge remote-tracking branch 'origin/main' into dev 2024-10-25 09:49:13 +02:00
Magne Sjaastad
47413ede45 Add example for linux CMakeUserPresets 2024-10-25 08:39:50 +02:00
Magne Sjaastad
e49c82c4e0 Bump version to 2024.09.2 2024-10-24 19:46:35 +02:00
Magne Sjaastad
cf8d84e56a Bump version to RC-03 2024-10-24 19:46:35 +02:00
Magne Sjaastad
26ed0e50d7 #11812 Multi-segment RFT plot: Make sure reservoir Pressure is plotted 2024-10-24 19:46:35 +02:00
Magne Sjaastad
4e888ef624 Bump version 2024-10-24 19:46:35 +02:00
Magne Sjaastad
be759a6e7e Improve support for network vectors
Show all text if summary address contains multiple : for network addresses
Consolidate replace of tokens in summary address
2024-10-24 19:46:35 +02:00
Magne Sjaastad
cfb120ce2e Fix crash when curve data is missing 2024-10-24 19:46:35 +02:00
Magne Sjaastad
317c737a22 Improve performance when creating multiple plots 2024-10-24 19:46:35 +02:00
Magne Sjaastad
cf7f00880a Add support for increase of serial number when data is assigned to a SUMO case 2024-10-24 19:46:35 +02:00
Magne Sjaastad
275a8b7284 Align the search expression with sumo explorer 2024-10-24 19:46:35 +02:00
magnesj
c0532cb96c Fixes by clang-format 2024-10-24 19:46:35 +02:00
Magne Sjaastad
e476c1c0c5 Bump version 2024-10-24 19:46:35 +02:00
Magne Sjaastad
417acc9d05 Improve performance when computing interpolated values
Use OpenMP when computing interpolated values for a curve.
Use std::lower_bound to quickly find a relevant start index, avoids starting from 0 each time.
2024-10-24 19:46:35 +02:00
Magne Sjaastad
d10cce4ead Use hash of input do control if calculation is required
Add hash functions
Add serial number to SummaryReaderInterface
Add hash for RimSummaryCase

Use hash based on input parameters to control caching of data in RimEnsembleStatisticsCase::calculate  and RimEnsembleCurveSet::appendOptionItemsForSummaryAddresses
2024-10-24 19:46:35 +02:00
Magne Sjaastad
4f8619d38c #11798 Use type definition from ClipperLib to avoid overflow
When converting a cvf::Vec3d to an integer vector, the platform int type was used as an intermediate variable. This caused overflow for large double values.
2024-10-24 19:46:35 +02:00
Magne Sjaastad
1f2b180ab7 #11812 Multi-segment RFT plot: Make sure reservoir Pressure is plotted 2024-10-24 12:18:35 +02:00
Magne Sjaastad
a9ea615bf0 Add support for increase of serial number when data is assigned to a SUMO case 2024-10-24 08:50:26 +02:00
Magne Sjaastad
c795eccf0b Align the search expression with sumo explorer 2024-10-24 08:50:26 +02:00
Kristian Bendiksen
293e19d820 Refactor: make contour map calculation easier to reuse. 2024-10-23 14:46:52 +02:00
Magne Sjaastad
2cdb388a0d Bump to dev.07 2024-10-23 12:38:22 +02:00
Magne Sjaastad
fd0ebd989b Improve performance when computing interpolated values
Use OpenMP when computing interpolated values for a curve.
Use std::lower_bound to quickly find a relevant start index, avoids starting from 0 each time.
2024-10-23 12:38:22 +02:00
Magne Sjaastad
581b268928 Use hash of input do control if calculation is required
Add hash functions
Add serial number to SummaryReaderInterface
Add hash for RimSummaryCase

Use hash based on input parameters to control caching of data in RimEnsembleStatisticsCase::calculate  and RimEnsembleCurveSet::appendOptionItemsForSummaryAddresses
2024-10-23 12:38:22 +02:00
Magne Sjaastad
ac96150875 Bump to dev.06 2024-10-22 18:02:36 +02:00
Magne Sjaastad
da4d4c66b1 #11798 Use type definition from ClipperLib to avoid overflow
When converting a cvf::Vec3d to an integer vector, the platform int type was used as an intermediate variable. This caused overflow for large double values.
2024-10-22 10:39:04 +02:00
Magne Sjaastad
df091336e0 Move summary tools into separate folder 2024-10-22 07:28:43 +02:00
Magne Sjaastad
95b2f2bbd1 Add icons 2024-10-21 14:11:22 +02:00
Magne Sjaastad
eee00ee508 Update default dock state for Quick Access 2024-10-21 14:11:22 +02:00
Magne Sjaastad
2befcf6417 Create quick access objects when opening project and some objects
Create quick access for Eclipse view, IJK slice filters and property filters
Create quick access objects for existing projects automatically
2024-10-21 14:11:22 +02:00
Magne Sjaastad
2e305bd762 Add quick access dock widget 2024-10-21 14:11:22 +02:00
Magne Sjaastad
4ff5aaf381 Add quick access data model objects 2024-10-21 14:11:22 +02:00
Magne Sjaastad
b0d967ff40
Preparations for quick access features
* Add tool button editor with callback support
* Guard null pointer usage
* Allow proxy field with no getter
* Remove duplicated code
2024-10-21 14:08:15 +02:00
Magne Sjaastad
5ffd7f3f61 Move Show Disks from Visibility group into Disk group 2024-10-21 12:52:42 +02:00
Magne Sjaastad
c3d60869bd Improve support for network vectors
Show all text if summary address contains multiple : for network addresses
Consolidate replace of tokens in summary address
2024-10-21 09:38:33 +02:00
Magne Sjaastad
2aaea1e6db Fix crash when curve data is missing 2024-10-21 09:38:33 +02:00
Magne Sjaastad
77c789a179 Improve performance when creating multiple plots 2024-10-21 09:38:33 +02:00
Magne Sjaastad
04799e044e Fix missing prefix seen in unity builds 2024-10-20 16:35:39 +02:00
Magne Sjaastad
205b29de3c Bump to dev.05 2024-10-18 13:17:09 +02:00
Kristian Bendiksen
ebc805ab65 Refactor: Extractor contour polygon tools. 2024-10-17 13:45:18 +02:00
Kristian Bendiksen
c636a80fe2 Refactor: simplify conditionals. 2024-10-17 08:23:22 +02:00
Kristian Bendiksen
4c3fb3cc47 Janitor: clean up includes. 2024-10-17 08:23:22 +02:00
Kristian Bendiksen
a8d56417f6 Refactor: Extract RigContourMapGrid object. 2024-10-17 08:23:22 +02:00
Magne Sjaastad
da321830a7 Janitor: Fix some minor GUI issues
Use appendMenu instead of context command builder
Remove case name from import grid feature
Fix shortcut for feature
2024-10-16 14:32:36 +02:00
Magne Sjaastad
4fd9edc7a5 Select realization in Data Sources when clicking on curve 2024-10-16 14:32:36 +02:00
Magne Sjaastad
42d700ff7d Remove unused code 2024-10-16 14:32:36 +02:00
Magne Sjaastad
2619f1a33a #11771 Highlight all curves for a realization when picking
When selecting a single curve in an ensemble, select and highlight all curves connected to this realization.
2024-10-16 14:32:36 +02:00
Magne Sjaastad
23cf3fef3a Call closeProject before quit to ensure a clean shutdown 2024-10-16 14:32:36 +02:00
Magne Sjaastad
383c7e071d
Merge in latest changes from main (#11782)
Merge main into dev after release of 2024.9.1
Includes changes to build related to conflicting Python requirements

ortools is used in the Komodo environment. This environment is not compatible with libprotoc 27 and newer. Use pinning to limit version of libprotoc<27.

Add dependency on typing_extensions
2024-10-16 09:27:09 +02:00