mirror of
https://github.com/OPM/ResInsight.git
synced 2024-12-29 10:21:54 -06:00
Octave Interface: getWellNames: Return Cell values
instead of char matrix.
This commit is contained in:
parent
7701cef865
commit
8a66e0fd5c
@ -112,16 +112,13 @@ DEFUN_DLD (riGetWellNames, args, nargout,
|
||||
|
||||
// Create cells with N items for each field in the data structure
|
||||
|
||||
//charMatrix octaveWellNames;
|
||||
string_vector octaveWellNames;
|
||||
for (size_t i = 0; i < caseCount; i++)
|
||||
{
|
||||
octaveWellNames.append(wellNames[i].toStdString());
|
||||
}
|
||||
|
||||
// Build a map between the field name and field cell values
|
||||
|
||||
return octave_value(octaveWellNames);
|
||||
return octave_value(Cell(octaveWellNames));
|
||||
}
|
||||
|
||||
return octave_value();
|
||||
|
Loading…
Reference in New Issue
Block a user