remove local buffer for error message in Force class

This commit is contained in:
Axel Kohlmeyer 2020-06-04 15:24:10 -04:00
parent 2777d37a61
commit 4b58e33b1e
No known key found for this signature in database
GPG Key ID: D9B44E93BF0C375A
1 changed files with 3 additions and 6 deletions

View File

@ -185,12 +185,9 @@ void Force::init()
// check if pair style must be specified after restart
if (pair_restart) {
if (!pair) {
char msg[128];
snprintf(msg,128,"Must re-specify non-restarted pair style (%s) "
"after read_restart", pair_restart);
error->all(FLERR,msg);
}
if (!pair)
error->all(FLERR,fmt::format("Must re-specify non-restarted pair style "
"({}) after read_restart", pair_restart));
}
if (kspace) kspace->init(); // kspace must come before pair