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
299e5896
Commit
299e5896
authored
Oct 04, 2016
by
Kyle Beauchamp
Browse files
Add workaround for xml alphabetization issue, print exceptions in TestSerializeIntegrator
parent
0dd0795d
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
8 deletions
+10
-8
serialization/tests/TestSerializeIntegrator.cpp
serialization/tests/TestSerializeIntegrator.cpp
+10
-8
No files found.
serialization/tests/TestSerializeIntegrator.cpp
View file @
299e5896
...
@@ -137,8 +137,8 @@ void testSerializeCustomIntegrator() {
...
@@ -137,8 +137,8 @@ void testSerializeCustomIntegrator() {
intg
->
addGlobalVariable
(
"oute"
,
0
);
intg
->
addGlobalVariable
(
"oute"
,
0
);
intg
->
addGlobalVariable
(
"oute1"
,
0
);
intg
->
addGlobalVariable
(
"oute1"
,
0
);
intg
->
addGlobalVariable
(
"oute2"
,
0
);
intg
->
addGlobalVariable
(
"oute2"
,
0
);
intg
->
addGlobalVariable
(
"conditional_v1"
,
0
);
intg
->
addGlobalVariable
(
"
oute3_
conditional_v1"
,
0
);
// HACK: need addGlobals to be alphabetical to work around bug
intg
->
addGlobalVariable
(
"conditional_v2"
,
0
);
intg
->
addGlobalVariable
(
"
oute3_
conditional_v2"
,
0
);
intg
->
addComputePerDof
(
"outf"
,
"f"
);
intg
->
addComputePerDof
(
"outf"
,
"f"
);
intg
->
addComputePerDof
(
"outf1"
,
"f1"
);
intg
->
addComputePerDof
(
"outf1"
,
"f1"
);
intg
->
addComputePerDof
(
"outf2"
,
"f2"
);
intg
->
addComputePerDof
(
"outf2"
,
"f2"
);
...
@@ -146,10 +146,10 @@ void testSerializeCustomIntegrator() {
...
@@ -146,10 +146,10 @@ void testSerializeCustomIntegrator() {
intg
->
addComputeGlobal
(
"oute1"
,
"energy1"
);
intg
->
addComputeGlobal
(
"oute1"
,
"energy1"
);
intg
->
addComputeGlobal
(
"oute2"
,
"energy2"
);
intg
->
addComputeGlobal
(
"oute2"
,
"energy2"
);
intg
->
beginIfBlock
(
"1 > 0"
);
intg
->
beginIfBlock
(
"1 > 0"
);
intg
->
addComputeGlobal
(
"conditional_v1"
,
"energy"
);
intg
->
addComputeGlobal
(
"
oute3_
conditional_v1"
,
"energy"
);
intg
->
endBlock
();
intg
->
endBlock
();
intg
->
beginWhileBlock
(
"0 > 1"
);
intg
->
beginWhileBlock
(
"0 > 1"
);
intg
->
addComputeGlobal
(
"conditional_v2"
,
"energy"
);
intg
->
addComputeGlobal
(
"
oute3_
conditional_v2"
,
"energy"
);
intg
->
endBlock
();
intg
->
endBlock
();
intg
->
addUpdateContextState
();
intg
->
addUpdateContextState
();
intg
->
addConstrainVelocities
();
intg
->
addConstrainVelocities
();
...
@@ -227,8 +227,10 @@ int main() {
...
@@ -227,8 +227,10 @@ int main() {
testSerializeLangevinIntegrator
();
testSerializeLangevinIntegrator
();
testSerializeCompoundIntegrator
();
testSerializeCompoundIntegrator
();
}
}
catch
(
const
exception
&
e
)
{
catch
(
const
exception
&
e
)
{
cout
<<
"exception: "
<<
e
.
what
()
<<
endl
;
return
1
;
return
1
;
}
}
return
0
;
cout
<<
"Done"
<<
endl
;
return
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