Debug format 0 of the ubqp evaluation

git-svn-id: svn://scm.gforge.inria.fr/svnroot/paradiseo@2563 331e1502-861f-0410-8da2-ba01fb791d7f
This commit is contained in:
verel 2011-12-13 22:22:59 +00:00
commit 95203c6b1b

View file

@ -115,7 +115,12 @@ public:
if (format == 0) {
for(unsigned int k = 0; k < nbNonZero; k++) {
file >> i >> j >> v;
Q[i - 1][j - 1] = v;
if (i > 0 && j > 0)
Q[i - 1][j - 1] = v;
else {
std::string str = "UbqpEval: some indices are 0 in the instance file (in format 0), please check." ;
throw std::runtime_error(str);
}
}
} else {
for(unsigned int i = 0; i < nbVar; i++) {