Commit cb9d7219 authored by Jason Swails's avatar Jason Swails
Browse files

Force the test to use the Reference platform (it's a tiny system, and all

TestAmberPrmtopFile.py tests take 17 seconds combined on my laptop).
parent d865c202
...@@ -163,7 +163,9 @@ class TestAmberPrmtopFile(unittest.TestCase): ...@@ -163,7 +163,9 @@ class TestAmberPrmtopFile(unittest.TestCase):
self.assertTrue(has_custom_nonbond_force) self.assertTrue(has_custom_nonbond_force)
self.assertEqual(nonbond_exceptions, custom_nonbond_exceptions) self.assertEqual(nonbond_exceptions, custom_nonbond_exceptions)
integrator = VerletIntegrator(1.0*femtoseconds) integrator = VerletIntegrator(1.0*femtoseconds)
sim = Simulation(prmtop3.topology, system, integrator) # Use reference platform, since it should always be present and
# 'working', and the system is plenty small so this won't be too slow
sim = Simulation(prmtop3.topology, system, integrator, Platform.getPlatformByName('Reference'))
# Check that the energy is about what we expect it to be # Check that the energy is about what we expect it to be
sim.context.setPeriodicBoxVectors(*inpcrd3.boxVectors) sim.context.setPeriodicBoxVectors(*inpcrd3.boxVectors)
sim.context.setPositions(inpcrd3.positions) sim.context.setPositions(inpcrd3.positions)
......
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