Simplify EXPECT_FORCES() utility function

This commit is contained in:
Richard Berger
2021-11-23 10:58:29 -05:00
parent 946fd6fb55
commit 615b7ceca2
3 changed files with 34 additions and 28 deletions

View File

@ -15,7 +15,8 @@
#define TEST_MAIN_H
#include "test_config.h"
#include "lmptype.h"
#include "lammps.h"
#include "atom.h"
#include <string>
#include <vector>
@ -37,6 +38,6 @@ void write_yaml_header(class YamlWriter *writer, TestConfig *cfg, const char *ve
} while (0);
void EXPECT_STRESS(const std::string & name, double * stress, const stress_t & expected_stress, double epsilon);
void EXPECT_FORCES(const std::string & name, double ** f, LAMMPS_NS::tagint * tag, int nlocal, const std::vector<coord_t> & f_ref, double epsilon);
void EXPECT_FORCES(const std::string & name, LAMMPS_NS::Atom * atom, const std::vector<coord_t> & f_ref, double epsilon);
#endif