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:
parent
3a97384dcd
commit
fc8eefb5fe
@ -148,7 +148,7 @@ DEFUN_DLD (riGetActiveCellProperty, args, nargout,
|
|||||||
|
|
||||||
// Check if we have a Requested TimeSteps
|
// Check if we have a Requested TimeSteps
|
||||||
|
|
||||||
if (!(nargin > argIndices[2] && args(argIndices[2]).is_matrix_type() && !args(argIndices[2]).is_string()))
|
if (!(nargin > argIndices[2] && (args(argIndices[2]).is_matrix_type() || args(argIndices[2]).is_numeric_type()) && !args(argIndices[2]).is_string()))
|
||||||
{
|
{
|
||||||
argIndices[2] = -1;
|
argIndices[2] = -1;
|
||||||
for (size_t aIdx = 3; aIdx < argIndices.size(); ++aIdx)
|
for (size_t aIdx = 3; aIdx < argIndices.size(); ++aIdx)
|
||||||
|
@ -163,7 +163,7 @@ DEFUN_DLD (riGetGridProperty, args, nargout,
|
|||||||
|
|
||||||
// Check if we have a Requested TimeSteps
|
// Check if we have a Requested TimeSteps
|
||||||
|
|
||||||
if (!(nargin > argIndices[3] && args(argIndices[3]).is_matrix_type() && !args(argIndices[3]).is_string()))
|
if (!(nargin > argIndices[3] && (args(argIndices[3]).is_matrix_type() || args(argIndices[3]).is_numeric_type()) && !args(argIndices[3]).is_string()))
|
||||||
{
|
{
|
||||||
argIndices[3] = -1;
|
argIndices[3] = -1;
|
||||||
for (size_t aIdx = 3; aIdx < argIndices.size(); ++aIdx)
|
for (size_t aIdx = 3; aIdx < argIndices.size(); ++aIdx)
|
||||||
|
@ -136,7 +136,7 @@ DEFUN_DLD (riGetWellStatus, args, nargout,
|
|||||||
|
|
||||||
// Check if we have a Requested TimeSteps
|
// Check if we have a Requested TimeSteps
|
||||||
int lastArgumentIndex = argIndices[2] ;
|
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;
|
argIndices[2] = -1;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user