Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
tsoc
openmm
Commits
519e072b
Unverified
Commit
519e072b
authored
May 23, 2023
by
Stephen Farr
Committed by
GitHub
May 23, 2023
Browse files
Allow negative pressure in MonteCarloAnisotropicBarostat (#4081)
parent
655518c3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
2 deletions
+0
-2
openmmapi/src/MonteCarloAnisotropicBarostat.cpp
openmmapi/src/MonteCarloAnisotropicBarostat.cpp
+0
-2
No files found.
openmmapi/src/MonteCarloAnisotropicBarostat.cpp
View file @
519e072b
...
@@ -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
;
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment