mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Octave Interface: Fixed wrong timestep array detection
The test to check whether an argument was a array of timestep indices was not good enough. Text was also interpreted as a matrix. Typechecking of the arguments is difficult due to the lack of documentation of the octave API
This commit is contained in:
committed by
JacobStoren
parent
05ae735519
commit
a7ba7c793c
@@ -176,7 +176,7 @@ DEFUN_DLD (riSetGridProperty, args, nargout,
|
||||
|
||||
// Check if we have a Requested TimeSteps
|
||||
|
||||
if (!(nargin > argIndices[4] && args(argIndices[4]).is_matrix_type()))
|
||||
if (!(nargin > argIndices[4] && args(argIndices[4]).is_matrix_type() && !args(argIndices[4]).is_string()))
|
||||
{
|
||||
argIndices[4] = -1;
|
||||
for (size_t aIdx = 5; aIdx < argIndices.size(); ++aIdx)
|
||||
|
||||
Reference in New Issue
Block a user