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
b0c5b0c1
Commit
b0c5b0c1
authored
Mar 02, 2014
by
Jason Swails
Browse files
Fix long-range vdW correction for real systems.
parent
f4d5ab3d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
openmmapi/src/NonbondedForceImpl.cpp
openmmapi/src/NonbondedForceImpl.cpp
+1
-1
No files found.
openmmapi/src/NonbondedForceImpl.cpp
View file @
b0c5b0c1
...
@@ -259,7 +259,7 @@ double NonbondedForceImpl::calcDispersionCorrection(const System& system, const
...
@@ -259,7 +259,7 @@ double NonbondedForceImpl::calcDispersionCorrection(const System& system, const
if
(
useSwitch
)
if
(
useSwitch
)
sum3
+=
count
*
epsilon
*
(
evalIntegral
(
cutoff
,
switchDist
,
cutoff
,
sigma
)
-
evalIntegral
(
switchDist
,
switchDist
,
cutoff
,
sigma
));
sum3
+=
count
*
epsilon
*
(
evalIntegral
(
cutoff
,
switchDist
,
cutoff
,
sigma
)
-
evalIntegral
(
switchDist
,
switchDist
,
cutoff
,
sigma
));
}
}
int
numParticles
=
system
.
getNumParticles
();
double
numParticles
=
(
double
)
system
.
getNumParticles
();
int
numInteractions
=
(
numParticles
*
(
numParticles
+
1
))
/
2
;
int
numInteractions
=
(
numParticles
*
(
numParticles
+
1
))
/
2
;
sum1
/=
numInteractions
;
sum1
/=
numInteractions
;
sum2
/=
numInteractions
;
sum2
/=
numInteractions
;
...
...
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