Skip to content

Commit 342975c

Browse files
committed
Merge branch 'master' into expol2
2 parents 8cdc798 + 6638f9f commit 342975c

File tree

4 files changed

+5
-4
lines changed

4 files changed

+5
-4
lines changed

include/tinker9.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
/// \def TINKER9_VERSION_PATCH
1010
#define TINKER9_VERSION_MAJOR 1
1111
#define TINKER9_VERSION_MINOR 0
12-
#define TINKER9_VERSION_PATCH 3
12+
#define TINKER9_VERSION_PATCH 4
1313
/// \}
1414

1515
// clang-format off
@@ -31,7 +31,7 @@
3131
" ### ### ""\n" \
3232
" ### Tinker9 -- Software Tools for Molecular Design ###""\n" \
3333
" ## ##""\n" \
34-
" ## Version 1.0.3 July 2022 ##""\n" \
34+
" ## Version 1.0.4 July 2022 ##""\n" \
3535
" ## ##""\n" \
3636
" ## Copyright (c) Zhi Wang & the Ponder Lab ##""\n" \
3737
" ### All Rights Reserved ###""\n" \

src/acc/hippo/cflux.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ static void angchg_acc1()
6565
if (rab != 0 and rcb != 0) {
6666
dot = xab * xcb + yab * ycb + zab * zcb;
6767
cosine = dot / (rab * rcb);
68-
cosine = REAL_MIN(1.0, REAL_MAX(-1, cosine));
68+
cosine = REAL_MIN((real)1, REAL_MAX((real)-1, cosine));
6969
angle = radian * REAL_ACOS(cosine);
7070

7171
int ab = balist[i][0];

src/cu/hippo/cflux.cu

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ static void bndangChg_cu1(real* restrict pdelta,
6262
real dot, angle, cosine;
6363
dot = xab * xcb + yab * ycb + zab * zcb;
6464
cosine = dot / (rab * rcb);
65-
cosine = REAL_MIN(1.0, REAL_MAX(-1, cosine));
65+
cosine = REAL_MIN((real)1, REAL_MAX((real)-1, cosine));
6666
angle = radian * REAL_ACOS(cosine);
6767

6868
int ab = balist[i][0];

src/cudart/gpucard.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -317,6 +317,7 @@ void gpuData(RcOp op)
317317
#if CUDART_VERSION >= 11000
318318
check_rt(cudaSetDeviceFlags(cuda_device_flags));
319319
#endif
320+
check_rt(cudaDeviceSynchronize());
320321

321322
int kdevice = -1;
322323
check_rt(cudaGetDevice(&kdevice));

0 commit comments

Comments
 (0)