mirror of
https://github.com/OPM/ResInsight.git
synced 2026-11-10 00:05:33 -06: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
@@ -151,6 +151,7 @@ RimSurface* RimSurfaceCollection::createSurfaceFromFile( const QString& fileName
|
||||
{
|
||||
auto regularFileSurface = new RimRegularFileSurface;
|
||||
regularFileSurface->setFilePath( fileName );
|
||||
regularFileSurface->setPropertyAsDepth( RimRegularFileSurface::propertyName() );
|
||||
newSurface = regularFileSurface;
|
||||
}
|
||||
else
|
||||
|
||||
Reference in new issue
Block a user