apply clang-tidy fixes

This commit is contained in:
Axel Kohlmeyer
2024-02-09 06:29:08 -05:00
parent f8885cb266
commit a2ae9dce64
11 changed files with 36 additions and 137 deletions

View File

@ -53,7 +53,7 @@ void Phonon::pdisp()
#ifdef UseSPG
if (method == 1){
#endif
while (1){
while (true){
for (int i = 0; i < 3; ++i) qstr[i] = qend[i];
printf("\nPlease input the start q-point in unit of B1->B3, q to exit [%g %g %g]: ", qstr[0], qstr[1], qstr[2]);
@ -67,7 +67,7 @@ void Phonon::pdisp()
qstr[2] = atof(strtok(NULL, " \t\n\r\f"));
}
while ( 1 ){
while ( true ){
printf("Please input the end q-point in unit of B1->B3: ");
input->read_stdin(str);
if (count_words(str) >= 3) break;
@ -166,8 +166,6 @@ void Phonon::pdisp()
delete []fname;
delete qnodes;
return;
}
/*----------------------------------------------------------------------------*/