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
c701af73
Commit
c701af73
authored
Sep 10, 2019
by
Chengwen Liu
Browse files
Updated TestReferenceAmoebaVdwForce.cpp
parent
2e970e9f
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
11 deletions
+9
-11
plugins/amoeba/platforms/reference/tests/TestReferenceAmoebaVdwForce.cpp
...platforms/reference/tests/TestReferenceAmoebaVdwForce.cpp
+9
-11
No files found.
plugins/amoeba/platforms/reference/tests/TestReferenceAmoebaVdwForce.cpp
View file @
c701af73
...
...
@@ -411,13 +411,6 @@ void testVdwAmmoniaCubicMeanWH() {
std
::
string
testName
=
"testVdwAmmoniaCubicMeanWH"
;
// test alchemical VDW
void
testVdwAlchemical
(
int
power
,
double
alpha
,
double
lambda
,
AmoebaVdwForce
::
AlchemicalMethod
method
)
{
std
::
string
testName
=
"testVdwAlchemical"
;
int
numberOfParticles
=
8
;
double
boxDimension
=
-
1.0
;
double
cutoff
=
9000000.0
;
...
...
@@ -437,7 +430,16 @@ void testVdwAlchemical(int power, double alpha, double lambda, AmoebaVdwForce::A
expectedForces
[
5
]
=
Vec3
(
1.4153288e+00
,
-
2.7130186e-01
,
-
1.5480591e-01
);
expectedForces
[
6
]
=
Vec3
(
-
1.8544507e+02
,
8.4027272e-03
,
6.0950274e+00
);
expectedForces
[
7
]
=
Vec3
(
1.4159723e+00
,
2.7168386e-01
,
-
1.5376786e-01
);
double
tolerance
=
1.0e-04
;
compareForcesEnergy
(
testName
,
expectedEnergy
,
energy
,
expectedForces
,
forces
,
tolerance
);
}
// test alchemical VDW
void
testVdwAlchemical
(
int
power
,
double
alpha
,
double
lambda
,
AmoebaVdwForce
::
AlchemicalMethod
method
)
{
std
::
string
testName
=
"testVdwAlchemical"
;
setupAndGetForcesEnergyVdwAmmonia2
(
"CUBIC-MEAN"
,
"HHG"
,
cutoff
,
boxDimension
,
forces
,
energy
,
method
,
power
,
alpha
,
lambda
);
std
::
vector
<
Vec3
>
expectedForces
(
numberOfParticles
);
...
...
@@ -457,10 +459,6 @@ void testVdwAlchemical(int power, double alpha, double lambda, AmoebaVdwForce::A
for
(
int
i
=
0
;
i
<
8
;
i
++
)
{
expectedForces
[
i
]
*=
scale
;
}
double
tolerance
=
1.0e-04
;
compareForcesEnergy
(
testName
,
expectedEnergy
,
energy
,
expectedForces
,
forces
,
tolerance
);
}
// test VDW w/ sigmaRule=Arithmetic and epsilonRule=Arithmetic
...
...
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