Skip to content
Snippets Groups Projects
Commit 4d0d424c authored by Marco van Oort's avatar Marco van Oort
Browse files

Fix bug where maxvol was not converted to value-to-be-improved, in case of...

Fix bug where maxvol was not converted to value-to-be-improved, in case of using the default min(m,n)+1 value
parent 1fa6a74b
No related branches found
No related tags found
No related merge requests found
......@@ -68,6 +68,9 @@ void initsolution(const struct mat *a, struct solution *s, struct options *o){
if(o->maxvol == -1) {
o->maxvol = ((a->m < a->n) ? a->m : a->n)+1; /* min(m,n)+1 */
fprintf(stderr, "Notice: Using default upper bound min(m,n)+1. If the program takes too long to complete, consider passing -v (for help, use -h).\n");
/* We add +1, to change from 'upper bound' to 'the value we want to improve upon' */
o->maxvol += 1;
}
s->maxvol = o->maxvol;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment