fixed: we need to evaluate nb[b] before incrementing b

This commit is contained in:
Arne Morten Kvarving 2018-08-03 11:04:33 +02:00
parent d5d3adcdb5
commit dc4bd9bdce

View File

@ -53,7 +53,7 @@ void ASMmxBase::extractNodeVecMx (const Vector& glbVec, Vector& nodVec,
nodVec.resize(len);
int ldof = 0;
for (int b = b0; b < b1; b++, ofs += nb[b])
for (int b = b0; b < b1; ofs += nb[b++])
for (size_t i = ofs; i < nb[b]+ofs; i++)
{
int idof = MADOF[i];