Skip to content

Commit

Permalink
[pre-commit.ci] pre-commit autoupdate (#2928)
Browse files Browse the repository at this point in the history
<!--pre-commit.ci start-->
updates:
- [github.com/pre-commit/mirrors-clang-format: v16.0.6 →
v17.0.2](pre-commit/mirrors-clang-format@v16.0.6...v17.0.2)
<!--pre-commit.ci end-->

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
  • Loading branch information
pre-commit-ci[bot] authored Oct 17, 2023
1 parent 05e0d27 commit f86c42a
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ repos:
- id: blacken-docs
# C++
- repo: https://github.com/pre-commit/mirrors-clang-format
rev: v16.0.6
rev: v17.0.2
hooks:
- id: clang-format
exclude: ^source/3rdparty|source/lib/src/gpu/cudart/.+\.inc
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ TYPED_TEST(TestInferDeepPotModeDeviFparamAparam, cpu_lmp_list_std) {
for (int kk = 0; kk < nmodel; ++kk) {
avg_f[dd] += fmd[kk][ii * 3 + dd];
}
avg_f[dd] /= (nmodel)*1.0;
avg_f[dd] /= (nmodel) * 1.0;
}
VALUETYPE std = 0.;
for (int kk = 0; kk < nmodel; ++kk) {
Expand Down
2 changes: 1 addition & 1 deletion source/api_c/tests/test_deeppot_model_devi_hpp.cc
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,7 @@ TYPED_TEST(TestInferDeepPotModeDevi, cpu_lmp_list_std) {
for (int kk = 0; kk < nmodel; ++kk) {
avg_f[dd] += fmd[kk][ii * 3 + dd];
}
avg_f[dd] /= (nmodel)*1.0;
avg_f[dd] /= (nmodel) * 1.0;
}
VALUETYPE std = 0.;
for (int kk = 0; kk < nmodel; ++kk) {
Expand Down
2 changes: 1 addition & 1 deletion source/api_cc/tests/test_deeppot_model_devi.cc
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,7 @@ TYPED_TEST(TestInferDeepPotModeDevi, cpu_lmp_list_std) {
for (int kk = 0; kk < nmodel; ++kk) {
avg_f[dd] += fmd[kk][ii * 3 + dd];
}
avg_f[dd] /= (nmodel)*1.0;
avg_f[dd] /= (nmodel) * 1.0;
}
VALUETYPE std = 0.;
for (int kk = 0; kk < nmodel; ++kk) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,7 @@ TYPED_TEST(TestInferDeepPotModeDeviFparamAparam, cpu_lmp_list_std) {
for (int kk = 0; kk < nmodel; ++kk) {
avg_f[dd] += fmd[kk][ii * 3 + dd];
}
avg_f[dd] /= (nmodel)*1.0;
avg_f[dd] /= (nmodel) * 1.0;
}
VALUETYPE std = 0.;
for (int kk = 0; kk < nmodel; ++kk) {
Expand Down

0 comments on commit f86c42a

Please sign in to comment.