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
74940b41
"vscode:/vscode.git/clone" did not exist on "960c22afd392b1036ff6b07faa3b17cff7444ce7"
Commit
74940b41
authored
Nov 12, 2018
by
peastman
Browse files
Fixed an unreliable test case
parent
ac92c086
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
tests/TestVirtualSites.h
tests/TestVirtualSites.h
+2
-1
No files found.
tests/TestVirtualSites.h
View file @
74940b41
...
...
@@ -219,11 +219,13 @@ Vec3 computeWeightedPosition(const vector<Vec3>& positions, const vector<double>
void
testLocalCoordinates
(
int
numSiteParticles
)
{
vector
<
int
>
particles
;
vector
<
double
>
originWeights
,
xWeights
,
yWeights
;
Vec3
localPosition
(
0.4
,
0.3
,
0.2
);
if
(
numSiteParticles
==
2
)
{
particles
=
{
0
,
1
};
originWeights
=
{
0.4
,
0.6
};
xWeights
=
{
-
1.0
,
1.0
};
yWeights
=
{
1.0
,
-
1.0
};
localPosition
[
1
]
=
localPosition
[
2
]
=
0.0
;
}
else
if
(
numSiteParticles
==
3
)
{
particles
=
{
0
,
1
,
2
};
...
...
@@ -237,7 +239,6 @@ void testLocalCoordinates(int numSiteParticles) {
xWeights
=
{
-
1.0
,
0.3
,
0.3
,
0.4
};
yWeights
=
{
0.5
,
0.5
,
-
0.5
,
-
0.5
};
}
const
Vec3
localPosition
(
0.4
,
0.3
,
0.2
);
System
system
;
for
(
int
i
=
0
;
i
<
numSiteParticles
;
i
++
)
system
.
addParticle
(
1.0
);
...
...
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