Skip to content

Commit

Permalink
fixes to previous commit
Browse files Browse the repository at this point in the history
  • Loading branch information
rfranke authored and OpenModelica-Hudson committed Aug 3, 2015
1 parent 832c3be commit 3cf4856
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions SimulationRuntime/cpp/Include/Core/Math/Array.h
Expand Up @@ -869,12 +869,12 @@ class StatArrayDim1 : public StatArray<T, size, external>

iterator begin()
{
return StatArray<T, size, external>::_array_data.begin();
return StatArray<T, size, external>::_array.begin();
}

iterator end()
{
return StatArray<T, size, external>::_array_data.end();
return StatArray<T, size, external>::_array.end();
}
};

Expand Down Expand Up @@ -1116,7 +1116,7 @@ class StatArrayDim3 : public StatArray<T, size1*size2*size3, external>
virtual const T& operator()(const vector<size_t>& idx) const
{
return StatArray<T, size1*size2*size3, external>::
_array_data[idx[0]-1 + size1*(idx[1]-1 + size2*(idx[2]-1))];
_data[idx[0]-1 + size1*(idx[1]-1 + size2*(idx[2]-1))];
}

/**
Expand All @@ -1126,7 +1126,7 @@ class StatArrayDim3 : public StatArray<T, size1*size2*size3, external>
virtual T& operator()(const vector<size_t>& idx)
{
return StatArray<T, size1*size2*size3, external>::
_array_data[idx[0]-1 + size1*(idx[1]-1 + size2*(idx[2]-1))];
_data[idx[0]-1 + size1*(idx[1]-1 + size2*(idx[2]-1))];
}

/**
Expand All @@ -1148,7 +1148,7 @@ class StatArrayDim3 : public StatArray<T, size1*size2*size3, external>
inline virtual T& operator()(size_t i, size_t j, size_t k)
{
return StatArray<T, size1*size2*size3, external>::
_array_data[i-1 + size1*(j-1 + size2*(k-1))];
_data[i-1 + size1*(j-1 + size2*(k-1))];
}

/**
Expand Down

0 comments on commit 3cf4856

Please sign in to comment.