Skip to content

Commit bb64dab

Browse files
[pre-commit.ci lite] apply automatic fixes
1 parent 7a58b10 commit bb64dab

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

source/module_lr/ri_benchmark/test/ri_benchmark_test.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,9 @@ TEST(RI_Benchmark, SlicePsi)
2424
{
2525
const int nk = 1, nbands = 2, nbasis = 3;
2626
psi::Psi<double> psi(nk, nbands, nbasis);
27-
for (int i = 0; i < nk * nbands * nbasis; i++)
27+
for (int i = 0; i < nk * nbands * nbasis; i++) {
2828
psi.get_pointer()[i] = i;
29+
}
2930
std::vector<double> psi_slice = RI_Benchmark::slice_psi(psi, 1, 1, 1, 2);
3031
EXPECT_DOUBLE_EQ(psi_slice[0], 4);
3132
EXPECT_DOUBLE_EQ(psi_slice[1], 5);
@@ -61,7 +62,7 @@ TEST(RI_Benchmark, CalCsMO)
6162

6263
int main(int argc, char** argv)
6364
{
64-
srand(time(NULL)); // for random number generator
65+
srand(time(nullptr)); // for random number generator
6566
MPI_Init(&argc, &argv);
6667
testing::InitGoogleTest(&argc, argv);
6768
int result = RUN_ALL_TESTS();

0 commit comments

Comments
 (0)