Unverified Commit 519e072b authored by Stephen Farr's avatar Stephen Farr Committed by GitHub
Browse files

Allow negative pressure in MonteCarloAnisotropicBarostat (#4081)

parent 655518c3
...@@ -43,8 +43,6 @@ MonteCarloAnisotropicBarostat::MonteCarloAnisotropicBarostat(const Vec3& default ...@@ -43,8 +43,6 @@ MonteCarloAnisotropicBarostat::MonteCarloAnisotropicBarostat(const Vec3& default
} }
void MonteCarloAnisotropicBarostat::setDefaultPressure(const Vec3& pressure) { void MonteCarloAnisotropicBarostat::setDefaultPressure(const Vec3& pressure) {
if (pressure[0] < 0 || pressure[1] < 0 || pressure[2] < 0)
throw OpenMMException("All components of pressure must be non-negative");
defaultPressure = pressure; defaultPressure = pressure;
} }
......
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