Unverified Commit 0f8ff07d authored by Axel Kohlmeyer's avatar Axel Kohlmeyer
Browse files

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

parent dff78c19
Loading
Loading
Loading
Loading
+61 −57
Original line number Diff line number Diff line
@@ -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);