I am not sure if this the right forum to post bugs in the c++ dom api - but I think this is a ‘copy-paste’ error in daeArray.h code -
in the code below ‘three’ is never set to the right value (two is set to index + 1, then to index + 2 again) - same error occurs in get4at as well.
daeInt get3at( size_t index, T &one, T &two, T &three )
{
daeInt retVal = 0;
if ( index < _count )
{
one = get(index);
retVal++;
}
if ( index+1 < _count )
{
two = get(index+1);
retVal++;
}
if ( index+2 < _count )
{
two = get(index+2);
retVal++;
}
return retVal;
}
Vn.