"platforms/reference/tests/TestReferenceDPDIntegrator.cpp" did not exist on "2f553a66c61be51c2f5ac6021857f5fa48c0b9ba"
Commit fbbfe67a authored by peastman's avatar peastman
Browse files

Fixed some test failures

parent 373c3878
...@@ -292,6 +292,7 @@ void testWithThermostat() { ...@@ -292,6 +292,7 @@ void testWithThermostat() {
system.addForce(forceField); system.addForce(forceField);
AndersenThermostat* thermostat = new AndersenThermostat(temp, collisionFreq); AndersenThermostat* thermostat = new AndersenThermostat(temp, collisionFreq);
system.addForce(thermostat); system.addForce(thermostat);
integrator.setRandomNumberSeed(thermostat->getRandomNumberSeed());
Context context(system, integrator, platform); Context context(system, integrator, platform);
vector<Vec3> positions(numParticles); vector<Vec3> positions(numParticles);
for (int i = 0; i < numParticles; ++i) for (int i = 0; i < numParticles; ++i)
...@@ -424,6 +425,7 @@ void testParameter() { ...@@ -424,6 +425,7 @@ void testParameter() {
integrator.addGlobalVariable("temp", 0); integrator.addGlobalVariable("temp", 0);
integrator.addComputeGlobal("temp", "AndersenTemperature"); integrator.addComputeGlobal("temp", "AndersenTemperature");
integrator.addComputeGlobal("AndersenTemperature", "temp*2"); integrator.addComputeGlobal("AndersenTemperature", "temp*2");
integrator.setRandomNumberSeed(thermostat->getRandomNumberSeed());
Context context(system, integrator, platform); Context context(system, integrator, platform);
// See if the parameter is being used correctly. // See if the parameter is being used correctly.
......
...@@ -292,6 +292,7 @@ void testWithThermostat() { ...@@ -292,6 +292,7 @@ void testWithThermostat() {
system.addForce(forceField); system.addForce(forceField);
AndersenThermostat* thermostat = new AndersenThermostat(temp, collisionFreq); AndersenThermostat* thermostat = new AndersenThermostat(temp, collisionFreq);
system.addForce(thermostat); system.addForce(thermostat);
integrator.setRandomNumberSeed(thermostat->getRandomNumberSeed());
Context context(system, integrator, platform); Context context(system, integrator, platform);
vector<Vec3> positions(numParticles); vector<Vec3> positions(numParticles);
for (int i = 0; i < numParticles; ++i) for (int i = 0; i < numParticles; ++i)
...@@ -424,6 +425,7 @@ void testParameter() { ...@@ -424,6 +425,7 @@ void testParameter() {
integrator.addGlobalVariable("temp", 0); integrator.addGlobalVariable("temp", 0);
integrator.addComputeGlobal("temp", "AndersenTemperature"); integrator.addComputeGlobal("temp", "AndersenTemperature");
integrator.addComputeGlobal("AndersenTemperature", "temp*2"); integrator.addComputeGlobal("AndersenTemperature", "temp*2");
integrator.setRandomNumberSeed(thermostat->getRandomNumberSeed());
Context context(system, integrator, platform); Context context(system, integrator, platform);
// See if the parameter is being used correctly. // See if the parameter is being used correctly.
......
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