avoid redundant use of boolean literals

This commit is contained in:
Axel Kohlmeyer
2022-04-10 20:29:54 -04:00
parent 74f2b67b1a
commit d6f7570d57
22 changed files with 64 additions and 82 deletions

View File

@ -2387,7 +2387,7 @@ void AtomVec::setup_fields()
else threads = nullptr;
for (int i = 0; i < ngrow; i++) {
Atom::PerAtom *field = &atom->peratom[mgrow.index[i]];
threads[i] = (field->threadflag) ? true : false;
threads[i] = field->threadflag == 1;
}
// set style-specific sizes