Commit 299e5896 authored by Kyle Beauchamp's avatar Kyle Beauchamp
Browse files

Add workaround for xml alphabetization issue, print exceptions in TestSerializeIntegrator

parent 0dd0795d
......@@ -137,8 +137,8 @@ void testSerializeCustomIntegrator() {
intg->addGlobalVariable("oute", 0);
intg->addGlobalVariable("oute1", 0);
intg->addGlobalVariable("oute2", 0);
intg->addGlobalVariable("conditional_v1", 0);
intg->addGlobalVariable("conditional_v2", 0);
intg->addGlobalVariable("oute3_conditional_v1", 0);// HACK: need addGlobals to be alphabetical to work around bug
intg->addGlobalVariable("oute3_conditional_v2", 0);
intg->addComputePerDof("outf", "f");
intg->addComputePerDof("outf1", "f1");
intg->addComputePerDof("outf2", "f2");
......@@ -146,10 +146,10 @@ void testSerializeCustomIntegrator() {
intg->addComputeGlobal("oute1", "energy1");
intg->addComputeGlobal("oute2", "energy2");
intg->beginIfBlock("1 > 0");
intg->addComputeGlobal("conditional_v1", "energy");
intg->addComputeGlobal("oute3_conditional_v1", "energy");
intg->endBlock();
intg->beginWhileBlock("0 > 1");
intg->addComputeGlobal("conditional_v2", "energy");
intg->addComputeGlobal("oute3_conditional_v2", "energy");
intg->endBlock();
intg->addUpdateContextState();
intg->addConstrainVelocities();
......@@ -227,8 +227,10 @@ int main() {
testSerializeLangevinIntegrator();
testSerializeCompoundIntegrator();
}
catch(const exception& e) {
catch(const exception& e) {
cout << "exception: " << e.what() << endl;
return 1;
}
return 0;
}
cout << "Done" << endl;
return 0;
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment