skip over newton_pair == off tests if newton_pair is forced to be on

This commit is contained in:
Axel Kohlmeyer
2020-05-26 18:36:22 -04:00
parent dff78c19aa
commit 0f8ff07da2

View File

@ -449,6 +449,9 @@ TEST(PairStyle, plain) {
lmp = init_lammps(argc,argv,test_config,false);
if (!verbose) ::testing::internal::GetCapturedStdout();
// skip over these tests if newton pair is forced to be on
if (lmp->force->newton_pair != 0) {
f=lmp->atom->f;
tag=lmp->atom->tag;
stats.reset();
@ -512,6 +515,7 @@ TEST(PairStyle, plain) {
EXPECT_FP_LE_WITH_EPS((pair->eng_vdwl+pair->eng_coul),energy, epsilon);
if (print_stats)
std::cerr << "run_energy stats, newton off:" << stats << std::endl;
}
if (!verbose) ::testing::internal::CaptureStdout();
restart_lammps(lmp, test_config);