mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Updated function docs
p4#: 22371
This commit is contained in:
parent
5dbc15998f
commit
f8f51bbe92
@ -5,14 +5,14 @@
|
|||||||
#include "riSettings.h"
|
#include "riSettings.h"
|
||||||
|
|
||||||
void getWellCells( std::vector<int>& cellIs,
|
void getWellCells( std::vector<int>& cellIs,
|
||||||
std::vector<int>& cellJs,
|
std::vector<int>& cellJs,
|
||||||
std::vector<int>& cellKs,
|
std::vector<int>& cellKs,
|
||||||
std::vector<int>& gridIndices,
|
std::vector<int>& gridIndices,
|
||||||
std::vector<int>& cellStatuses,
|
std::vector<int>& cellStatuses,
|
||||||
std::vector<int>& branchIds,
|
std::vector<int>& branchIds,
|
||||||
std::vector<int>& segmentIds,
|
std::vector<int>& segmentIds,
|
||||||
const QString &hostName, quint16 port,
|
const QString &hostName, quint16 port,
|
||||||
const qint64& caseId, const QString& wellName, int requestedTimeStep)
|
const qint64& caseId, const QString& wellName, int requestedTimeStep)
|
||||||
{
|
{
|
||||||
QString serverName = hostName;
|
QString serverName = hostName;
|
||||||
quint16 serverPort = port;
|
quint16 serverPort = port;
|
||||||
@ -116,12 +116,13 @@ DEFUN_DLD (riGetWellCells, args, nargout,
|
|||||||
"as a vector of Structures. \n"
|
"as a vector of Structures. \n"
|
||||||
"The Structure is defined as:\n"
|
"The Structure is defined as:\n"
|
||||||
"WellCellInfo { \n"
|
"WellCellInfo { \n"
|
||||||
" I, J, K = int # Index to the cell in the grid\n"
|
" I, J, K = int # Index to the cell in the grid\n"
|
||||||
" GridIndex = int # the index of the grid. Main grid has index 0.\n"
|
" GridIndex = int # the index of the grid. Main grid has index 0.\n"
|
||||||
" CellStatus = int # is either 0 or 1, meaning the cell is closed or open respectively.\n"
|
" CellStatus = int # is either 0 or 1, meaning the cell is closed or open respectively\n"
|
||||||
|
" BranchId = int # Branch id of the branch intersecting the cell\n"
|
||||||
|
" SegmentId = int # Branch segment id of the branch intersecting the cell\n"
|
||||||
"}\n"
|
"}\n"
|
||||||
"If the CaseId is not defined, ResInsight’s Current Case is used.\n"
|
"If the CaseId is not defined, ResInsight’s Current Case is used.\n"
|
||||||
|
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
if (nargout != 1)
|
if (nargout != 1)
|
||||||
@ -204,12 +205,12 @@ DEFUN_DLD (riGetWellCells, args, nargout,
|
|||||||
std::vector<int> segmentIds;
|
std::vector<int> segmentIds;
|
||||||
|
|
||||||
getWellCells( cellIs, cellJs, cellKs,
|
getWellCells( cellIs, cellJs, cellKs,
|
||||||
gridIndices,
|
gridIndices,
|
||||||
cellStatuses,
|
cellStatuses,
|
||||||
branchIds,
|
branchIds,
|
||||||
segmentIds,
|
segmentIds,
|
||||||
"127.0.0.1", 40001,
|
"127.0.0.1", 40001,
|
||||||
caseId, QString::fromStdString(wellName), requestedTimeStep);
|
caseId, QString::fromStdString(wellName), requestedTimeStep);
|
||||||
|
|
||||||
size_t cellCount = cellIs.size();
|
size_t cellCount = cellIs.size();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user