avoid crash in Pair::single() test on certain inpus
This commit is contained in:
@ -25,6 +25,7 @@
|
|||||||
|
|
||||||
#include "atom.h"
|
#include "atom.h"
|
||||||
#include "compute.h"
|
#include "compute.h"
|
||||||
|
#include "domain.h"
|
||||||
#include "force.h"
|
#include "force.h"
|
||||||
#include "info.h"
|
#include "info.h"
|
||||||
#include "input.h"
|
#include "input.h"
|
||||||
@ -1098,6 +1099,13 @@ TEST(PairStyle, single)
|
|||||||
command(pre_command);
|
command(pre_command);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (lmp->domain->box_exist) {
|
||||||
|
std::cerr << "Cannot test single() with YAML file that creates a box\n";
|
||||||
|
cleanup_lammps(lmp, test_config);
|
||||||
|
if (!verbose) ::testing::internal::GetCapturedStdout();
|
||||||
|
GTEST_SKIP();
|
||||||
|
}
|
||||||
|
|
||||||
command("atom_style full");
|
command("atom_style full");
|
||||||
command("units ${units}");
|
command("units ${units}");
|
||||||
command("boundary p p p");
|
command("boundary p p p");
|
||||||
|
|||||||
Reference in New Issue
Block a user