use true/false instead of 1/0 detected and changed by clang-tidy

This commit is contained in:
Axel Kohlmeyer
2021-10-20 12:41:02 -04:00
parent 84666543d1
commit 85433e8bd1
65 changed files with 130 additions and 130 deletions

View File

@ -253,7 +253,7 @@ int MinLineSearch::linemin_backtrack(double eoriginal, double &alpha)
// backtrack with alpha until energy decrease is sufficient
while (1) {
while (true) {
ecurrent = alpha_step(alpha,1);
// if energy change is better than ideal, exit with success
@ -412,7 +412,7 @@ int MinLineSearch::linemin_quadratic(double eoriginal, double &alpha)
// etmp-eoriginal+alphatmp*fdothall);
// alpha_step(0.0,1);
while (1) {
while (true) {
ecurrent = alpha_step(alpha,1);
// compute new fh, alpha, delfh
@ -708,7 +708,7 @@ int MinLineSearch::linemin_forcezero(double eoriginal, double &alpha)
// main linesearch loop
while (1) {
while (true) {
backtrack = false;
fhPrev = fhCurr;
engPrev = engCurr;