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
8f55af1c
"platforms/cuda/vscode:/vscode.git/clone" did not exist on "96db6b14b1d098b4797b1502e46a696ecb119748"
Unverified
Commit
8f55af1c
authored
Jan 06, 2021
by
peastman
Committed by
GitHub
Jan 06, 2021
Browse files
Minor code cleanup (#2979)
parent
9f9ac8d3
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
serialization/src/SystemProxy.cpp
serialization/src/SystemProxy.cpp
+4
-4
No files found.
serialization/src/SystemProxy.cpp
View file @
8f55af1c
...
...
@@ -6,7 +6,7 @@
* Biological Structures at Stanford, funded under the NIH Roadmap for *
* Medical Research, grant U54 GM072970. See https://simtk.org. *
* *
* Portions copyright (c) 2010-201
7
Stanford University and the Authors. *
* Portions copyright (c) 2010-20
2
1 Stanford University and the Authors. *
* Authors: Peter Eastman *
* Contributors: *
* *
...
...
@@ -129,7 +129,7 @@ void* SystemProxy::deserialize(const SerializationNode& node) const {
else
if
(
vsite
.
getName
()
==
"OutOfPlaneSite"
)
system
->
setVirtualSite
(
i
,
new
OutOfPlaneSite
(
vsite
.
getIntProperty
(
"p1"
),
vsite
.
getIntProperty
(
"p2"
),
vsite
.
getIntProperty
(
"p3"
),
vsite
.
getDoubleProperty
(
"w12"
),
vsite
.
getDoubleProperty
(
"w13"
),
vsite
.
getDoubleProperty
(
"wc"
)));
else
if
(
vsite
.
getName
()
==
"LocalCoordinatesSite"
)
{
vector
<
int
>
particles
;
vector
<
int
>
particle
Indice
s
;
vector
<
double
>
wo
,
wx
,
wy
;
for
(
int
j
=
0
;
;
j
++
)
{
stringstream
ss
;
...
...
@@ -137,13 +137,13 @@ void* SystemProxy::deserialize(const SerializationNode& node) const {
string
index
=
ss
.
str
();
if
(
!
vsite
.
hasProperty
(
"p"
+
index
))
break
;
particles
.
push_back
(
vsite
.
getIntProperty
(
"p"
+
index
));
particle
Indice
s
.
push_back
(
vsite
.
getIntProperty
(
"p"
+
index
));
wo
.
push_back
(
vsite
.
getDoubleProperty
(
"wo"
+
index
));
wx
.
push_back
(
vsite
.
getDoubleProperty
(
"wx"
+
index
));
wy
.
push_back
(
vsite
.
getDoubleProperty
(
"wy"
+
index
));
}
Vec3
p
(
vsite
.
getDoubleProperty
(
"pos1"
),
vsite
.
getDoubleProperty
(
"pos2"
),
vsite
.
getDoubleProperty
(
"pos3"
));
system
->
setVirtualSite
(
i
,
new
LocalCoordinatesSite
(
particles
,
wo
,
wx
,
wy
,
p
));
system
->
setVirtualSite
(
i
,
new
LocalCoordinatesSite
(
particle
Indice
s
,
wo
,
wx
,
wy
,
p
));
}
}
}
...
...
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