Revert "add 'atom type' test option to force style tests"

This reverts commit 7709dfa118.
This commit is contained in:
Jacob Gissinger
2023-02-21 12:58:55 -05:00
parent cdcc33aebc
commit 633ae8bc40
6 changed files with 0 additions and 50 deletions

View File

@ -70,7 +70,6 @@ void EXPECT_FORCES(const std::string &name, Atom *atom, const std::vector<coord_
void EXPECT_POSITIONS(const std::string &name, Atom *atom, const std::vector<coord_t> &x_ref,
double epsilon)
{
if (x_ref.empty()) return;
SCOPED_TRACE("EXPECT_POSITIONS: " + name);
double **x = atom->x;
tagint *tag = atom->tag;
@ -88,7 +87,6 @@ void EXPECT_POSITIONS(const std::string &name, Atom *atom, const std::vector<coo
void EXPECT_VELOCITIES(const std::string &name, Atom *atom, const std::vector<coord_t> &v_ref,
double epsilon)
{
if (v_ref.empty()) return;
SCOPED_TRACE("EXPECT_VELOCITIES: " + name);
double **v = atom->v;
tagint *tag = atom->tag;
@ -103,23 +101,6 @@ void EXPECT_VELOCITIES(const std::string &name, Atom *atom, const std::vector<co
if (print_stats) std::cerr << name << " stats" << stats << std::endl;
}
void EXPECT_ATOM_TYPES(const std::string &name, Atom *atom, const std::vector<int> &at_ref)
{
if (at_ref.empty()) return;
SCOPED_TRACE("EXPECT_ATOM_TYPES: " + name);
int *type = atom->type;
tagint *tag = atom->tag;
const int nlocal = atom->nlocal;
ASSERT_EQ(nlocal + 1, at_ref.size());
ErrorStats stats;
for (int i = 0; i < nlocal; ++i) {
EXPECT_EQ(type[i], at_ref[tag[i]]);
EXPECT_EQ(type[i], at_ref[tag[i]]);
EXPECT_EQ(type[i], at_ref[tag[i]]);
}
if (print_stats) std::cerr << name << " stats" << stats << std::endl;
}
// common read_yaml_file function
bool read_yaml_file(const char *infile, TestConfig &config)
{