mirror of
https://github.com/OPM/ResInsight.git
synced 2026-10-26 07:00:17 -05:00
Refactor depth property handling for regular surfaces
- Introduce RimRegularFileSurface::propertyName() as canonical property key for file-based surfaces. - Change RimRegularSurface::setPropertyAsDepth() to void and remove existence check; error handling is now in updateSurfaceData(). - Update all usages to match new setPropertyAsDepth() behavior. - Log and handle missing depth property in updateSurfaceData(). - Update tests to reflect new error handling approach. - Minor includes and logging improvements.
This commit is contained in:
1 parent
a6ce2b3a65
commit
4b9f94efb8
7 files changed
+25
-16
No files matched your search
@@ -94,8 +94,7 @@ std::expected<caf::PdmObjectHandle*, QString> RimcRegularSurface_setPropertyAsDe
|
||||
RimRegularSurface* surface = self<RimRegularSurface>();
|
||||
if ( !surface ) return std::unexpected( "No surface found" );
|
||||
|
||||
if ( !surface->setPropertyAsDepth( m_name ) ) return std::unexpected( "Failed to set depth property." );
|
||||
|
||||
surface->setPropertyAsDepth( m_name );
|
||||
surface->onLoadData();
|
||||
|
||||
if ( auto coll = surface->firstAncestorOrThisOfType<RimSurfaceCollection>() )
|
||||
|
||||
Reference in new issue
Block a user