Labels are anchored at the pipe surface point closest to the camera and offset perpendicular to the pipe on screen. Also account for well paths starting at non-zero measured depth.
Add RiaDefines::StatisticsType and use it in Summary Table, statistics contour map and ensemble surface statistics instead of three separate enums with the same values.
Review follow-up for #15127: onProjectBeingSaved() returns false when the
surface has data that could not be written, and saveProjectAs() then fails
with a message naming the surface before the project file is written, so a
write error no longer reports a successful save with the surface data lost.
Review follow-up for #15127:
- Write the surface file to <project>_surfaces/<name>_<file id>.ts. The file
id is created once per surface and renewed on copy, so names that sanitize
to the same string, user files of the same name and a project saved under
another name in the same folder no longer overwrite each other.
- Track changes since the last save, and keep the in-memory data on reload
until it has been written.
- Reject property names that are empty or contain whitespace, as the GOCAD
TSurf file separates names by spaces.
- set_property raises when there is no parent project, like the other calls.
- Null check before the assert in setProperty, fix the triangleIndices typo.
Add TriangulatedSurface with set_geometry, set_property, get_property
and available_properties, created by
SurfaceCollection.new_triangulated_surface. When the project is saved,
the surface is written as a GOCAD TSurf file next to the project file
and read back from that file when the project is opened.
Add an overload of RifSurfaceExporter::writeGocadTSurfFile that writes
PROPERTIES and PVRTX lines, which RifSurfaceImporter::readGocadFile
already reads. Write coordinates with 16 significant digits instead of
the QTextStream default of 6, which truncates UTM coordinates.
Check eclipseCaseData() before reading the unit system of the case.
Call stack:
[0] performCrashLogging at ResInsight/ApplicationExeCode/RiaMainTools.cpp:178
[1] manageSegFailureSA(int, siginfo_t*, void*) at ResInsight/ApplicationExeCode/RiaMainTools.cpp:310
[3] RimWellLogExtractionCurve* RicWellLogTools::addExtractionCurve<RimWellLogExtractionCurve>(RimWellLogTrack*, RimCase*, Rim3dView*, RimWellPath*, RimSimWellInView const*, int, bool, bool) at ResInsight/ApplicationLibCode/Commands/RicWellLogTools.cpp:209
[4] RicNewWellLogExtractionCurveFeature::onActionTriggered(bool) at ResInsight/ApplicationLibCode/Commands/WellLogCommands/RicNewWellLogExtractionCurveFeature.cpp:116
[5] caf::CmdFeature::actionTriggered(bool) at ResInsight/Fwk/AppFwk/cafCommand/cafCmdFeature.cpp:176
[14] RiaGuiApplication::notify(QObject*, QEvent*) at ResInsight/ApplicationLibCode/Application/RiaGuiApplication.cpp:1879
[20] RiaGuiApplication::notify(QObject*, QEvent*) at ResInsight/ApplicationLibCode/Application/RiaGuiApplication.cpp:1879
[32] RiuMainWindow::customMenuRequested(QPoint const&) at ResInsight/ApplicationLibCode/UserInterface/RiuMainWindow.cpp:2094
[40] RiaGuiApplication::notify(QObject*, QEvent*) at ResInsight/ApplicationLibCode/Application/RiaGuiApplication.cpp:1879
[45] RiaGuiApplication::notify(QObject*, QEvent*) at ResInsight/ApplicationLibCode/Application/RiaGuiApplication.cpp:1879
[56] main at ResInsight/ApplicationExeCode/RiaMain.cpp:267
[57] __libc_start_main at :0
Skip curves without a summary case when splitting a multi plot.
Call stack:
[0] performCrashLogging at ResInsight/ApplicationExeCode/RiaMainTools.cpp:178
[1] manageSegFailureSA(int, siginfo_t*, void*) at ResInsight/ApplicationExeCode/RiaMainTools.cpp:310
[3] RimSummaryCase::caseId() const at ResInsight/ApplicationLibCode/ProjectDataModel/Summary/RimSummaryCase.cpp:453
[4] RicSplitMultiPlotFeature::onActionTriggered(bool) at ResInsight/ApplicationLibCode/Commands/PlotBuilderCommands/RicSplitMultiPlotFeature.cpp:62
[5] caf::CmdFeature::actionTriggered(bool) at ResInsight/Fwk/AppFwk/cafCommand/cafCmdFeature.cpp:176
[14] RiaGuiApplication::notify(QObject*, QEvent*) at ResInsight/ApplicationLibCode/Application/RiaGuiApplication.cpp:1879
[20] RiaGuiApplication::notify(QObject*, QEvent*) at ResInsight/ApplicationLibCode/Application/RiaGuiApplication.cpp:1879
[32] RiuMainWindow::customMenuRequested(QPoint const&) at ResInsight/ApplicationLibCode/UserInterface/RiuMainWindow.cpp:2094
[40] RiaGuiApplication::notify(QObject*, QEvent*) at ResInsight/ApplicationLibCode/Application/RiaGuiApplication.cpp:1879
[45] RiaGuiApplication::notify(QObject*, QEvent*) at ResInsight/ApplicationLibCode/Application/RiaGuiApplication.cpp:1879
[56] main at ResInsight/ApplicationExeCode/RiaMain.cpp:267
[57] __libc_start_main at :0
Updating the containing editor can delete field editors and remove them from m_editors while the set is iterated. Iterate a copy and skip editors that are no longer connected. Same fix in PdmUiItem::updateConnectedEditors().
Call stack:
[0] performCrashLogging at ResInsight/ApplicationExeCode/RiaMainTools.cpp:178
[1] manageSegFailureSA(int, siginfo_t*, void*) at ResInsight/ApplicationExeCode/RiaMainTools.cpp:310
[4] std::_Rb_tree_const_iterator<caf::PdmUiEditorHandle*>::operator++() at /opt/rh/gcc-toolset-13/root/usr/include/c++/13/bits/stl_tree.h:368
[5] caf::PdmFieldUiCap<caf::PdmField<std::vector<int, std::allocator<int> > > >::setValueFromUiEditor(QVariant const&, bool) at ResInsight/Fwk/AppFwk/cafProjectDataModel/cafPdmUiCore/cafInternalPdmUiFieldCapability.inl:116
[6] caf::CmdFieldChangeExec::redo() at ResInsight/Fwk/AppFwk/cafCommand/cafCmdFieldChangeExec.cpp:139
[8] caf::CmdUiCommandSystemImpl::fieldChangedCommand(std::vector<caf::PdmFieldHandle*, std::allocator<caf::PdmFieldHandle*> > const&, QVariant const&) at ResInsight/Fwk/AppFwk/cafCommand/cafCmdUiCommandSystemImpl.cpp:146
[9] caf::PdmUiCommandSystemProxy::setUiValueToField(caf::PdmUiFieldHandle*, QVariant const&) at ResInsight/Fwk/AppFwk/cafProjectDataModel/cafPdmUiCore/cafPdmUiCommandSystemProxy.cpp:113
[10] caf::PdmUiTreeSelectionQModel::setData(QModelIndex const&, QVariant const&, int) at ResInsight/Fwk/AppFwk/cafUserInterface/cafPdmUiTreeSelectionQModel.cpp:538
[21] RiaGuiApplication::notify(QObject*, QEvent*) at ResInsight/ApplicationLibCode/Application/RiaGuiApplication.cpp:1879
[27] RiaGuiApplication::notify(QObject*, QEvent*) at ResInsight/ApplicationLibCode/Application/RiaGuiApplication.cpp:1879
[38] main at ResInsight/ApplicationExeCode/RiaMain.cpp:267
[39] __libc_start_main at :0
[0] performCrashLogging at ResInsight/ApplicationExeCode/RiaMainTools.cpp:178
[1] manageSegFailureSA(int, siginfo_t*, void*) at ResInsight/ApplicationExeCode/RiaMainTools.cpp:310
[4] caf::PdmUiFieldHandle::notifyFieldChanged(QVariant const&, QVariant const&) at ResInsight/Fwk/AppFwk/cafProjectDataModel/cafPdmUiCore/cafPdmUiFieldHandle.cpp:85
[5] caf::PdmFieldUiCap<caf::PdmPtrField<RimEclipseCase*> >::setValueFromUiEditor(QVariant const&, bool) at ResInsight/Fwk/AppFwk/cafProjectDataModel/cafPdmUiCore/cafInternalPdmUiFieldCapability.inl:116
[6] caf::CmdFieldChangeExec::redo() at ResInsight/Fwk/AppFwk/cafCommand/cafCmdFieldChangeExec.cpp:139
[8] caf::CmdUiCommandSystemImpl::fieldChangedCommand(std::vector<caf::PdmFieldHandle*, std::allocator<caf::PdmFieldHandle*> > const&, QVariant const&) at ResInsight/Fwk/AppFwk/cafCommand/cafCmdUiCommandSystemImpl.cpp:146
[9] caf::PdmUiCommandSystemProxy::setUiValueToField(caf::PdmUiFieldHandle*, QVariant const&) at ResInsight/Fwk/AppFwk/cafProjectDataModel/cafPdmUiCore/cafPdmUiCommandSystemProxy.cpp:113
[10] caf::PdmUiComboBoxEditor::slotIndexActivated(int) at ResInsight/Fwk/AppFwk/cafUserInterface/cafPdmUiComboBoxEditor.cpp:455
[21] RiaGuiApplication::notify(QObject*, QEvent*) at ResInsight/ApplicationLibCode/Application/RiaGuiApplication.cpp:1879
[27] RiaGuiApplication::notify(QObject*, QEvent*) at ResInsight/ApplicationLibCode/Application/RiaGuiApplication.cpp:1879
[38] main at ResInsight/ApplicationExeCode/RiaMain.cpp:267
[39] __libc_start_main at :0
Time steps are not read when a file has more than one grid section. setDefaultsBasedOnFile() then indexed the empty time step list, and setDataAtTimeValue() wrote at index -1. Use index 0 and skip data for unknown time steps.
Call stack:
[0] performCrashLogging at ResInsight/ApplicationExeCode/RiaMainTools.cpp:178
[1] manageSegFailureSA(int, siginfo_t*, void*) at ResInsight/ApplicationExeCode/RiaMainTools.cpp:310
[3] RimStimPlanFractureTemplate::setDefaultsBasedOnFile() at ResInsight/ApplicationLibCode/ProjectDataModel/Completions/RimStimPlanFractureTemplate.cpp:116
[4] RicMeshFractureTemplateHelper<RimStimPlanFractureTemplate>::createNewTemplatesFromFiles(std::vector<QString, std::allocator<QString> > const&, QString const&, bool) at ResInsight/ApplicationLibCode/Commands/FractureCommands/RicMeshFractureTemplateHelper.inl:150
[5] RicMeshFractureTemplateHelper<RimStimPlanFractureTemplate>::createNewTemplates(QString const&, QString const&, QString const&, QString const&) at ResInsight/ApplicationLibCode/Commands/FractureCommands/RicMeshFractureTemplateHelper.inl:89
[6] RicNewStimPlanFractureTemplateFeature::createNewTemplates() at ResInsight/ApplicationLibCode/Commands/FractureCommands/RicNewStimPlanFractureTemplateFeature.cpp:58
[7] RicNewStimPlanFractureTemplateFeature::onActionTriggered(bool) at ResInsight/ApplicationLibCode/Commands/FractureCommands/RicNewStimPlanFractureTemplateFeature.cpp:78
[8] caf::CmdFeature::actionTriggered(bool) at ResInsight/Fwk/AppFwk/cafCommand/cafCmdFeature.cpp:176
[17] RiaGuiApplication::notify(QObject*, QEvent*) at ResInsight/ApplicationLibCode/Application/RiaGuiApplication.cpp:1879
[23] RiaGuiApplication::notify(QObject*, QEvent*) at ResInsight/ApplicationLibCode/Application/RiaGuiApplication.cpp:1879
[35] RiuMainWindow::customMenuRequested(QPoint const&) at ResInsight/ApplicationLibCode/UserInterface/RiuMainWindow.cpp:2094
[43] RiaGuiApplication::notify(QObject*, QEvent*) at ResInsight/ApplicationLibCode/Application/RiaGuiApplication.cpp:1879
[48] RiaGuiApplication::notify(QObject*, QEvent*) at ResInsight/ApplicationLibCode/Application/RiaGuiApplication.cpp:1879
[59] main at ResInsight/ApplicationExeCode/RiaMain.cpp:267
[60] __libc_start_main at :0
A custom file name without a folder left the export folder empty, which the forwarded export method rejects. Resolve the folder with QFileInfo::absolutePath(), as the legacy export did.
SICD valves fell through to the ICV path and were exported as WSEGVALV since the legacy MSW export path was removed. Handle SICD together with AICD and copy the template values into the WSEGSICD row through applySicdTemplateValues.
WSEGAICD items 16-21 (A1-A3, B1-B3) were always exported as defaults since
the legacy MSW export path was removed. Copy all AICD template values into
the WSEGAICD row through a shared helper, applyAicdTemplateValues.
Azimuth fractures with a user-defined perforation length now use the along-well-path D-factor calculation (well radius from perforation length and 1.2 correction factor), consistent with the transmissibility calculation.
Add a homogeneous 20x20x20 test grid, a uniform StimPlan fracture and a script exporting fracture completions for ellipse and StimPlan templates with along, transverse and azimuth orientations. The pytest compares the exported files with stored reference files. Make view mesh and surface mode scriptable, used by the script to hide grid lines and surfaces.
Insert nodes concurrently into a lock-free hash table keeping the lowest index per coordinate, then number unique nodes per fixed block, so the result is independent of thread count. Reduces removal time from 1.8 s to about 0.45 s for 78.4M nodes. Add a disabled performance test and docs/remove-duplicate-grid-nodes.md describing the algorithm.
Compute leaf layout from IJK and store cell indices in one array instead of a vector per leaf. Reduces tree build time by about 30 % and peak memory by about 200 MiB on a 9.8M cell grid.
Add the 'remove-duplicate-grid-nodes' experimental feature and only call RigMainGrid::removeDuplicateNodes() during case loading and grid registration when it is enabled.
Merge identical nodes when grid geometry is finalized and remap cell corner indices. Partial shared node indices in the quad overlap calculation are now resolved geometrically, keeping fault and NNC geometry unchanged. Log the node count reduction with thousand grouping and the removed share of nodes.
Encapsulate the node table of RigMainGrid behind nodes() and modifiableNodes() returning spans, allocateNodes() and clearNodes(). Readers and LGR builders fill the node table in place through allocateNodes() instead of building a temporary vector, which reduces peak import memory by about 1.6 GiB for a 9.8M cell grid. The radial grid conversion and map axes transform update nodes in place.
Use default preferences instead of the stored user preferences, load a font shipped with the regression test files and hide version info in 3D views. User state is restored by a scope guard, also if a test throws.
The AddFolder description, used as the add_folder() docstring, named only
an imported polygon file and a cloud polygon folder as folders that raise.
A cloud polygon source and address raise too.
The design notes still called PdmNestedCollectionBase a concrete base. It
is abstract and registered with CAF_PDM_ABSTRACT_SOURCE_INIT.
The Python generator declares the add_folder() return type from
subCollectionClassKeyword(), while the folder is created by
createSubCollection(). Nothing tied the two together, so overriding only
one of them would give wrong type hints without any failing test.
ResInsight-tests: the folder added to a polygon collection, a surface
collection and an ensemble surface has the class named by
subCollectionClassKeyword(), and a polygon file declares and creates no
folder.
surface_folder(name) only searches direct sub folders of the top surface
folder and returns None otherwise; state this in the scripting
documentation of the method and its FolderName argument.
surface_by_name excludes ensemble surfaces only when no folder is given;
make that explicit and point to sub_collections() for nested folders.
A comparison view could be updated with a stale time step index restored from the project file before it was clamped, causing out-of-range access in GeoMech result frames. Also guard RimGeoMechView::onClampCurrentTimestep against unloaded case data.
RimPolygonFile and the RimPolygonCloudAddress, Folder and Source classes
are not scriptable and have no generated class. rips returns them as
RimPolygonContainer, which gets no typed override (abstract, not
instantiated), so they inherit PdmNestedCollectionBase.add_folder(),
declared as returning PdmNestedCollectionBase, not PolygonCollection.
The generator already emits nothing typed for them:
subCollectionClassKeyword() is empty for a container that cannot add
folders, and classKeywordReturnedTypeForSelf() then falls back to the
declared type. Checked in generated_classes.py from the rips wheel built
on cf72e83.
The call still raises "Cannot add subfolder" on these containers, so
the AddFolder description, used as the add_folder() docstring, now says
so.
collection_name() returned the stored m_collectionName, which is empty
for a RimPolygonFile or RimPolygonCloudAddress without a name. Both
classes fall back to the file name or a default ("Polygon File", "Sumo
Polygon Address") in name().
PdmNestedCollectionBase::displayName() is a virtual that defaults to
collectionName(); RimPolygonFile and RimPolygonCloudAddress override it
with name(), and CollectionNameInternal returns displayName().
collectionName() itself is unchanged, since findSubCollectionByName()
and the name conflict policy compare stored names.
ResInsight-tests: RimcNestedCollectionBase-Test covers a polygon
collection, a polygon file (default, base name, file name fallback) and
a cloud polygon address.
The Python generator emits add_folder() again on a concrete collection
class when the folder type narrows: SurfaceCollection.add_folder()
returns SurfaceCollection and PolygonCollection.add_folder() returns
PolygonCollection, while PdmNestedCollectionBase keeps the declared type.
PdmObjectMethod::classKeywordReturnedTypeForSelf() reports the narrowed
type, and the super class method check in the generator accepts such an
override (same arguments, subclass return type).
PdmNestedCollectionBase: subCollectionClassKeyword() names the folder
type without creating one, addNewSubCollection() is a template method
over createSubCollection() and returns PdmNestedCollectionBase*, and the
base virtuals are pure. The leaf polygon containers only override
canAddSubCollection().
collection_name() in rips returns the folder name for every nested
collection; the class specific name attributes are kept.
A cell pair that encloses a pair already written is now discarded, as the
pairing did before this PR. Sorting the pairs by entering depth was the other
option, but it keeps both cells: the inner interval is still counted twice and
the depths still go back at the end of the outer cell. Discarding the outer
pair is a single comparison and gives the old result for nested cells.
The pairing is moved to the static pairCellEnterLeavePoints() so it can be
tested with synthetic point sequences, and the limit of 4 points between an
entering and a leaving point is a named constant with a note on why.
Add a per-workflow Vertical Layout toggle to the workflow editor toolbar
and canvas context menu. In vertical mode ranks are stacked top to bottom,
task inputs sit on the top edge and outputs on the bottom edge, config
boxes are placed above their task and control edges run between the sides.