From c9e5e5aaba5e62eba563075cb2f1c7c6381fa25e Mon Sep 17 00:00:00 2001 From: Magne Sjaastad Date: Mon, 13 Feb 2023 14:47:55 +0100 Subject: [PATCH] Fix broken build --- ApplicationLibCode/FileInterface/RifActiveCellsReader.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ApplicationLibCode/FileInterface/RifActiveCellsReader.cpp b/ApplicationLibCode/FileInterface/RifActiveCellsReader.cpp index 96a52c7690..0948dab1cf 100644 --- a/ApplicationLibCode/FileInterface/RifActiveCellsReader.cpp +++ b/ApplicationLibCode/FileInterface/RifActiveCellsReader.cpp @@ -73,7 +73,7 @@ std::vector> RifActiveCellsReader::activeCellsFromPorvKeyword( std::vector porvValues; RifEclipseOutputFileTools::keywordData( ecl_file, PORV_KW, gridIdx, &porvValues ); - size_t activeCellCount = porvValues.size(); + int activeCellCount = static_cast( porvValues.size() ); // For some cases, the dual porosity flag is not interpreted correctly. Add a fallback by checking the number of // cells in the main grid @@ -88,9 +88,9 @@ std::vector> RifActiveCellsReader::activeCellsFromPorvKeyword( std::vector activeCellsOneGrid; activeCellsOneGrid.resize( activeCellCount, 0 ); - for ( size_t poreValueIndex = 0; poreValueIndex < porvValues.size(); poreValueIndex++ ) + for ( int poreValueIndex = 0; poreValueIndex < static_cast( porvValues.size() ); poreValueIndex++ ) { - size_t indexToCell = poreValueIndex; + int indexToCell = poreValueIndex; if ( indexToCell >= activeCellCount ) { indexToCell = poreValueIndex - activeCellCount;