Unverified Commit ddcc104d authored by Axel Kohlmeyer's avatar Axel Kohlmeyer
Browse files

must also reissue hybrid pair style commands after restarts

parent cc6371b0
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -32,6 +32,7 @@
#include "modify.h"
#include "pair.h"
#include "universe.h"
#include "utils.h"

#include <cctype>
#include <cstdio>
@@ -159,7 +160,8 @@ void restart_lammps(LAMMPS *lmp, const TestConfig &cfg)
    command("clear");
    command("read_restart " + cfg.basename + ".restart");

    if (!lmp->force->pair) {
    // need to re-issue pair style with non-restartable and hybrid pair styles
    if ((!lmp->force->pair) || (utils::strmatch(cfg.pair_style,"^hybrid"))) {
        command("pair_style " + cfg.pair_style);
    }
    if (!lmp->force->pair->restartinfo || !lmp->force->pair->writedata) {