silence compiler warnings

This commit is contained in:
Axel Kohlmeyer
2022-11-01 03:38:08 -04:00
parent 658220c69d
commit 80a141d9c8
13 changed files with 16 additions and 22 deletions

View File

@ -260,7 +260,7 @@ int TersoffT::loop(const int eflag, const int vflag, const int evatom,
// re-allocate zetaij if necessary
int nall = this->_nall;
if (nall*this->nbor->max_nbors() > _zetaij.cols()) {
if (nall*this->nbor->max_nbors() > (int)_zetaij.cols()) {
int _nmax=static_cast<int>(static_cast<double>(nall)*1.10);
_zetaij.clear();
_zetaij_eng.clear();