Skip to content

Commit

Permalink
Stop hybrid solver when it failed multiple times. (#7288)
Browse files Browse the repository at this point in the history
  • Loading branch information
AnHeuermann committed Mar 12, 2021
1 parent 15130d2 commit 2231d03
Showing 1 changed file with 4 additions and 0 deletions.
Expand Up @@ -1055,6 +1055,10 @@ int solveHybrd(DATA *data, threadData_t *threadData, int sysNumber)
}
/* take the best approximation */
memcpy(systemData->nlsx, solverData->x, solverData->n*(sizeof(double)));

giveUp = 1;
success = 0;
break;
}
}

Expand Down

0 comments on commit 2231d03

Please sign in to comment.