apply clang-format

This commit is contained in:
Axel Kohlmeyer
2022-01-30 17:18:40 -05:00
parent 3707b327c0
commit 7ee7d0c570
25 changed files with 77 additions and 68 deletions

View File

@ -60,13 +60,13 @@ TEST_F(Input_commands, from_file)
const char cont_file[] = "in.cont";
fp = fopen(demo_file, "w");
for (auto & inp : demo_input) {
for (auto &inp : demo_input) {
fputs(inp, fp);
fputc('\n', fp);
}
fclose(fp);
fp = fopen(cont_file, "w");
for (auto & inp : cont_input) {
for (auto &inp : cont_input) {
fputs(inp, fp);
fputc('\n', fp);
}
@ -84,7 +84,7 @@ TEST_F(Input_commands, from_file)
TEST_F(Input_commands, from_line)
{
EXPECT_EQ(lmp->atom->natoms, 0);
for (auto & inp : demo_input) {
for (auto &inp : demo_input) {
lmp->input->one(inp);
}
EXPECT_EQ(lmp->atom->natoms, 1);

View File

@ -372,8 +372,8 @@ TEST(LAMMPS_init, NoOpenMP)
::testing::internal::CaptureStdout();
LAMMPS *lmp = new LAMMPS(argc, argv, MPI_COMM_WORLD);
std::string output = ::testing::internal::GetCapturedStdout();
EXPECT_THAT(output,
ContainsRegex(".*OMP_NUM_THREADS environment is not set.*Defaulting to 1 thread.*"));
EXPECT_THAT(output, ContainsRegex(
".*OMP_NUM_THREADS environment is not set.*Defaulting to 1 thread.*"));
EXPECT_EQ(lmp->comm->nthreads, 1);
::testing::internal::CaptureStdout();
delete lmp;