avoid crash in Pair::single() test on certain inpus

This commit is contained in:
Axel Kohlmeyer
2023-04-08 04:00:10 -04:00
parent fbf1fcc605
commit f7d6592aa6

View File

@ -25,6 +25,7 @@
#include "atom.h"
#include "compute.h"
#include "domain.h"
#include "force.h"
#include "info.h"
#include "input.h"
@ -1098,6 +1099,13 @@ TEST(PairStyle, single)
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("units ${units}");
command("boundary p p p");