Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
tsoc
openmm
Commits
5cb31cfa
"openmmapi/src/CustomCVForce.cpp" did not exist on "66bc28f5e91da32744ba076eb2666a7d9164abe6"
Commit
5cb31cfa
authored
Mar 13, 2018
by
peastman
Browse files
Bug fix to switching function when not computing energy
parent
e4653fb7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
platforms/cpu/src/CpuCustomNonbondedForce.cpp
platforms/cpu/src/CpuCustomNonbondedForce.cpp
+3
-1
No files found.
platforms/cpu/src/CpuCustomNonbondedForce.cpp
View file @
5cb31cfa
...
...
@@ -252,7 +252,9 @@ void CpuCustomNonbondedForce::calculateOneIxn(int ii, int jj, ThreadData& data,
// accumulate forces
double
dEdR
=
(
includeForce
?
data
.
forceExpression
.
evaluate
()
/
r
:
0.0
);
double
energy
=
(
includeEnergy
?
data
.
energyExpression
.
evaluate
()
:
0.0
);
double
energy
=
0.0
;
if
(
includeEnergy
||
(
useSwitch
&&
r
>
switchingDistance
))
energy
=
data
.
energyExpression
.
evaluate
();
double
switchValue
=
1.0
;
if
(
useSwitch
)
{
if
(
r
>
switchingDistance
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment