diff --git a/ApplicationCode/SocketInterface/RiaWellDataCommands.cpp b/ApplicationCode/SocketInterface/RiaWellDataCommands.cpp index 79b6fc3276..4c9d935206 100644 --- a/ApplicationCode/SocketInterface/RiaWellDataCommands.cpp +++ b/ApplicationCode/SocketInterface/RiaWellDataCommands.cpp @@ -311,9 +311,9 @@ public: int branchId = resPoint.m_ertBranchId; int segmentId = resPoint.m_ertSegmentId; - cellIs .push_back( static_cast(i) ); - cellJs .push_back( static_cast(j) ); - cellKs .push_back( static_cast(k) ); + cellIs .push_back( static_cast(i + 1) ); // NB: 1-based index in Octave + cellJs .push_back( static_cast(j + 1) ); // NB: 1-based index in Octave + cellKs .push_back( static_cast(k + 1) ); // NB: 1-based index in Octave gridIndices .push_back( static_cast(gridIdx) ); cellStatuses.push_back( static_cast(isOpen) ); branchIds .push_back( branchId );