Skip to content

Commit

Permalink
Merge pull request #154 from mohabsafey/bug-low-charac
Browse files Browse the repository at this point in the history
bug fix (sets linalg option to 2 in low characteristic)
  • Loading branch information
ederc authored Jul 19, 2024
2 parents a95f969 + 459b2bf commit ff0b93a
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/msolve/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -426,9 +426,11 @@ int main(int argc, char **argv){
gens->random_linear_form = malloc(sizeof(int32_t)*(nr_vars));
gens->elim = elim_block_len;

if(0 < field_char && field_char < pow(2, 15) && la_option > 2 && info_level){
fprintf(stderr, "Warning: characteristic is too low for choosing \nprobabilistic linear algebra\n");
fprintf(stderr, "\t linear algebra option set to 2\n");
if(0 < field_char && field_char < pow(2, 15) && la_option > 2){
if(info_level){
fprintf(stderr, "Warning: characteristic is too low for choosing \nprobabilistic linear algebra\n");
fprintf(stderr, "\t linear algebra option set to 2\n");
}
la_option = 2;
}

Expand Down

0 comments on commit ff0b93a

Please sign in to comment.