Refactor use of grid dimensions

This commit is contained in:
Magne Sjaastad
2024-01-21 21:13:24 +01:00
parent 833a0e8584
commit a090992f5a
7 changed files with 19 additions and 29 deletions

View File

@@ -73,7 +73,7 @@ bool RimRoffCase::openEclipseGridFile()
QString fileName = gridFileName();
// First find and read the grid data
if ( eclipseCaseData()->mainGrid()->gridPointDimensions() == cvf::Vec3st( 0, 0, 0 ) )
if ( eclipseCaseData()->mainGrid()->cellCount() == 0 )
{
QString errorMessages;
if ( RifRoffFileTools::openGridFile( fileName, eclipseCaseData(), &errorMessages ) )