Commit daedcdba authored by Peter Eastman's avatar Peter Eastman
Browse files

testInstallation.py is better able to deal with errors

parent 2e451b9d
......@@ -26,13 +26,13 @@ for i in range(numPlatforms):
platform = Platform.getPlatform(i)
print i+1, platform.getName(),
integrator = LangevinIntegrator(300*kelvin, 1/picosecond, 0.002*picoseconds)
try:
simulation = Simulation(pdb.topology, system, integrator, platform)
simulation.context.setPositions(pdb.positions)
try:
forces[i] = simulation.context.getState(getForces=True).getForces()
print "- Successfully computed forces"
except:
print "- Error computing forces"
print "- Error computing forces with", platform.getName(), "platform"
# See how well the platforms agree.
......
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