fix a few more MSVC issues and reduce warnings
This commit is contained in:
@ -500,8 +500,7 @@ void PairSNAP::read_files(char *coefffilename, char *paramfilename)
|
||||
nelemtmp = words.next_int();
|
||||
ncoeffall = words.next_int();
|
||||
} catch (TokenizerException &e) {
|
||||
error->all(FLERR,"Incorrect format in SNAP coefficient "
|
||||
"file: {}", e.what());
|
||||
error->all(FLERR,"Incorrect format in SNAP coefficient file: {}", e.what());
|
||||
}
|
||||
|
||||
// clean out old arrays and set up element lists
|
||||
@ -538,7 +537,7 @@ void PairSNAP::read_files(char *coefffilename, char *paramfilename)
|
||||
std::vector<std::string> words;
|
||||
try {
|
||||
words = Tokenizer(utils::trim_comment(line),"\"' \t\n\r\f").as_vector();
|
||||
} catch (TokenizerException &e) {
|
||||
} catch (TokenizerException &) {
|
||||
// ignore
|
||||
}
|
||||
if (words.size() != 3)
|
||||
@ -599,8 +598,7 @@ void PairSNAP::read_files(char *coefffilename, char *paramfilename)
|
||||
|
||||
coeffelem[jelem][icoeff] = coeff.next_double();
|
||||
} catch (TokenizerException &e) {
|
||||
error->all(FLERR,"Incorrect format in SNAP coefficient "
|
||||
"file: {}", e.what());
|
||||
error->all(FLERR,"Incorrect format in SNAP coefficient file: {}", e.what());
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -609,8 +607,7 @@ void PairSNAP::read_files(char *coefffilename, char *paramfilename)
|
||||
|
||||
for (int jelem = 0; jelem < nelements; jelem++) {
|
||||
if (elementflags[jelem] == 0)
|
||||
error->all(FLERR,"Element {} not found in SNAP coefficient "
|
||||
"file", elements[jelem]);
|
||||
error->all(FLERR,"Element {} not found in SNAP coefficient file", elements[jelem]);
|
||||
}
|
||||
delete[] elementflags;
|
||||
|
||||
@ -660,7 +657,7 @@ void PairSNAP::read_files(char *coefffilename, char *paramfilename)
|
||||
std::vector<std::string> words;
|
||||
try {
|
||||
words = Tokenizer(utils::trim_comment(line),"\"' \t\n\r\f").as_vector();
|
||||
} catch (TokenizerException &e) {
|
||||
} catch (TokenizerException &) {
|
||||
// ignore
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user