Skip to content

Commit

Permalink
fix in Array assign in cpp runtime
Browse files Browse the repository at this point in the history
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@21835 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
niklwors committed Aug 11, 2014
1 parent efa25b0 commit 260c6af
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions SimulationRuntime/cpp/Include/Core/Math/Array.h
Expand Up @@ -752,7 +752,7 @@ template<typename T >class DynArrayDim2 : public BaseArray<T>

for (int i = 1; i <= v[0]; i++)
{
for (int j = 1; i <= v[1]; i++)
for (int j = 1; j <= v[1]; j++)
{
_multi_array[i][j] = otherArray(i,j);
}
Expand Down Expand Up @@ -857,9 +857,9 @@ template<typename T> class DynArrayDim3 : public BaseArray<T>

for (int i = 1; i <= v[0]; i++)
{
for (int j = 1; i <= v[1]; i++)
for (int j = 1; j <= v[1]; i++)
{
for (int k = 1; i <= v[1]; i++)
for (int k = 1; k <= v[1]; i++)
{
_multi_array[i][j][k] = otherArray(i,j,k);
}
Expand Down

0 comments on commit 260c6af

Please sign in to comment.