We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8e4868a commit 2d672a5Copy full SHA for 2d672a5
.clang-tidy
@@ -0,0 +1,13 @@
1
+# for f in $(find src test -type f -name '*.cpp'); do clang-tidy --quiet --config-file=.clang-tidy -p BUILD_DIR $f; done
2
+
3
+---
4
+Checks: '-*,readability-implicit-bool-conversion'
5
+WarningsAsErrors: ''
6
+HeaderFilterRegex: ''
7
+FormatStyle: none
8
+CheckOptions:
9
+ - key: readability-implicit-bool-conversion.AllowIntegerConditions
10
+ value: true
11
+ - key: readability-implicit-bool-conversion.AllowPointerConditions
12
13
+...
include/ff/egvop.h
@@ -21,7 +21,7 @@ void sumGradient(double scale, grad_prec* g0x, grad_prec* g0y, grad_prec* g0z, /
21
const grad_prec* g1x, const grad_prec* g1y, const grad_prec* g1z);
22
23
/// Copies the energy gradients from device to host.
24
-void copyGradient(int vers, double* grdx, double* grdy, double* grdz, //
+void copyGradientSync(int vers, double* grdx, double* grdy, double* grdz, //
25
const grad_prec* gx_src, const grad_prec* gy_src, const grad_prec* gz_src, int queue);
26
27
src/egvop.cpp
@@ -57,7 +57,7 @@ void sumGradient(double s, grad_prec* g0x, grad_prec* g0y, grad_prec* g0z, const
57
}
58
59
namespace tinker {
60
61
const grad_prec* gx_src, const grad_prec* gy_src, const grad_prec* gz_src, int queue)
62
{
63
if (vers & calc::grad) {
@@ -99,7 +99,7 @@ void copyGradient(int vers, double* grdx, double* grdy, double* grdz, //
99
void copyGradient(int vers, double* grdx, double* grdy, double* grdz, //
100
const grad_prec* gx_src, const grad_prec* gy_src, const grad_prec* gz_src)
101
102
- copyGradient(vers, grdx, grdy, grdz, gx_src, gy_src, gz_src, g::q0);
+ copyGradientSync(vers, grdx, grdy, grdz, gx_src, gy_src, gz_src, g::q0);
103
104
105
void copyGradient(int vers, double* grdx, double* grdy, double* grdz)
src/mdsave.cpp
@@ -119,8 +119,8 @@ static void mdsaveDupThenWrite(int istep, time_prec dt)
119
120
121
std::vector<double> arrx(n), arry(n), arrz(n);
122
- copyGradient(calc::grad, arrx.data(), arry.data(), arrz.data(), dup_buf_gx, dup_buf_gy,
123
- dup_buf_gz, false);
+ copyGradientSync(calc::grad, arrx.data(), arry.data(), arrz.data(), dup_buf_gx, dup_buf_gy,
+ dup_buf_gz, g::q1);
124
// convert gradient to acceleration
125
const double ekcal = units::ekcal;
126
for (int i = 0; i < n; ++i) {
0 commit comments