Revert "must also reissue hybrid pair style commands after restarts"
This reverts commit ddcc104df6.
This commit is contained in:
@ -32,7 +32,6 @@
|
|||||||
#include "modify.h"
|
#include "modify.h"
|
||||||
#include "pair.h"
|
#include "pair.h"
|
||||||
#include "universe.h"
|
#include "universe.h"
|
||||||
#include "utils.h"
|
|
||||||
|
|
||||||
#include <cctype>
|
#include <cctype>
|
||||||
#include <cstdio>
|
#include <cstdio>
|
||||||
@ -160,8 +159,7 @@ void restart_lammps(LAMMPS *lmp, const TestConfig &cfg)
|
|||||||
command("clear");
|
command("clear");
|
||||||
command("read_restart " + cfg.basename + ".restart");
|
command("read_restart " + cfg.basename + ".restart");
|
||||||
|
|
||||||
// need to re-issue pair style with non-restartable and hybrid pair styles
|
if (!lmp->force->pair) {
|
||||||
if ((!lmp->force->pair) || (utils::strmatch(cfg.pair_style,"^hybrid"))) {
|
|
||||||
command("pair_style " + cfg.pair_style);
|
command("pair_style " + cfg.pair_style);
|
||||||
}
|
}
|
||||||
if (!lmp->force->pair->restartinfo || !lmp->force->pair->writedata) {
|
if (!lmp->force->pair->restartinfo || !lmp->force->pair->writedata) {
|
||||||
|
|||||||
Reference in New Issue
Block a user