mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#1688 Make all commands using a [RequestedTimeSteps] handle a single timestep
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user