}
catch (mu::ParserError &e)
{
- cerr << "Message: " << e.GetMsg() << "\n";
- cerr << "Formula: " << e.GetExpr() << "\n";
- cerr << "Token: " << e.GetToken() << "\n";
- cerr << "Position: " << e.GetPos() << "\n";
- cerr << "Errc: " << e.GetCode() << std::endl;
+ std::cerr << "Message: " << e.GetMsg() << "\n";
+ std::cerr << "Formula: " << e.GetExpr() << "\n";
+ std::cerr << "Token: " << e.GetToken() << "\n";
+ std::cerr << "Position: " << e.GetPos() << "\n";
+ std::cerr << "Errc: " << e.GetCode() << std::endl;
AssertThrow(false, ExcParseError(e.GetCode(), e.GetMsg().c_str()));
}
}
}
catch (mu::ParserError &e)
{
- cerr << "Message: " << e.GetMsg() << "\n";
- cerr << "Formula: " << e.GetExpr() << "\n";
- cerr << "Token: " << e.GetToken() << "\n";
- cerr << "Position: " << e.GetPos() << "\n";
- cerr << "Errc: " << e.GetCode() << std::endl;
+ std::cerr << "Message: " << e.GetMsg() << "\n";
+ std::cerr << "Formula: " << e.GetExpr() << "\n";
+ std::cerr << "Token: " << e.GetToken() << "\n";
+ std::cerr << "Position: " << e.GetPos() << "\n";
+ std::cerr << "Errc: " << e.GetCode() << std::endl;
AssertThrow(false, ExcParseError(e.GetCode(), e.GetMsg().c_str()));
return 0.0;
}
break;
}
if (has_larger_entries == false)
- for ( ; it != end; ++it, ++k)
+ for ( ; it != end; ++it)
{
+ if (*it == row)
+ continue;
Assert (k <= rowstart[row+1],
ExcNotEnoughSpace(row, rowstart[row+1]-rowstart[row]));
- colnums[k] = *it;
+ colnums[k++] = *it;
}
else
// cannot just append the new range at the end, forward to the