apply changes suggested by clang-tidy

This commit is contained in:
Axel Kohlmeyer
2023-01-27 11:49:43 -05:00
parent e7ea5e8bf5
commit 34e8a74989
12 changed files with 11 additions and 30 deletions

View File

@ -202,14 +202,14 @@ bool AtomT::add_fields(const bool charge, const bool rot,
if (extra_fields > 0 && _extra_fields==0) {
_extra_fields=extra_fields;
_other=true;
if (_host_view==false) {
if (!_host_view) {
success=success && (extra.alloc(_max_atoms*_extra_fields,*dev,UCL_WRITE_ONLY,
UCL_READ_ONLY)==UCL_SUCCESS);
gpu_bytes+=extra.device.row_bytes();
}
}
if (bonds && _bonds==false) {
if (bonds && !_bonds) {
_bonds=true;
if (_bonds && _gpu_nbor>0) {
success=success && (dev_tag.alloc(_max_atoms,*dev,