mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Test for ijk dimention match before reading data
Whitespace fixup p4#: 21749
This commit is contained in:
parent
5bca9b28c1
commit
3b05c59b55
@ -136,15 +136,15 @@ DEFUN_DLD (riSetGridProperty, args, nargout,
|
|||||||
return octave_value_list ();
|
return octave_value_list ();
|
||||||
}
|
}
|
||||||
std::vector<int> argIndices;
|
std::vector<int> argIndices;
|
||||||
argIndices.push_back(0);
|
argIndices.push_back(0); // Array data
|
||||||
argIndices.push_back(1);
|
argIndices.push_back(1); // Case Id
|
||||||
argIndices.push_back(2);
|
argIndices.push_back(2); // GridIndex
|
||||||
argIndices.push_back(3);
|
argIndices.push_back(3); // Property name
|
||||||
argIndices.push_back(4);
|
argIndices.push_back(4); // Time step indices
|
||||||
argIndices.push_back(5);
|
argIndices.push_back(5); // Porosity model
|
||||||
|
|
||||||
// Check if we have a CaseId:
|
// Check if we do not have a CaseId:
|
||||||
if (!args(argIndices[1]).is_numeric_type())
|
if (args(argIndices[2]).is_string()) // Check if second argument is a text. If it is, the caseid is missing
|
||||||
{
|
{
|
||||||
argIndices[1] = -1;
|
argIndices[1] = -1;
|
||||||
for (size_t aIdx = 2; aIdx < argIndices.size(); ++aIdx)
|
for (size_t aIdx = 2; aIdx < argIndices.size(); ++aIdx)
|
||||||
|
Loading…
Reference in New Issue
Block a user