#1688 Make all commands using a [RequestedTimeSteps] handle a single timestep

This commit is contained in:
Bjørnar Grip Fjær
2017-08-03 14:23:50 +02:00
parent 3a97384dcd
commit fc8eefb5fe
3 changed files with 3 additions and 3 deletions

View File

@@ -136,7 +136,7 @@ DEFUN_DLD (riGetWellStatus, args, nargout,
// Check if we have a Requested TimeSteps
int lastArgumentIndex = argIndices[2] ;
if (!(nargin > argIndices[2] && args(argIndices[2]).is_matrix_type()))
if (!(nargin > argIndices[2] && (args(argIndices[2]).is_matrix_type() || args(argIndices[2]).is_numeric_type())))
{
argIndices[2] = -1;
}