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
7f367d00
"platforms/reference/tests/TestReferenceQTBIntegrator.cpp" did not exist on "a138663d61116c35f1358ca0e6a49cf2782d1509"
Commit
7f367d00
authored
Sep 14, 2010
by
Peter Eastman
Browse files
Setting update frequency to 0 disables MonteCarloBarostat
parent
2ef05285
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
3 deletions
+5
-3
openmmapi/include/openmm/MonteCarloBarostat.h
openmmapi/include/openmm/MonteCarloBarostat.h
+4
-2
openmmapi/src/MonteCarloBarostatImpl.cpp
openmmapi/src/MonteCarloBarostatImpl.cpp
+1
-1
No files found.
openmmapi/include/openmm/MonteCarloBarostat.h
View file @
7f367d00
...
...
@@ -75,13 +75,15 @@ public:
return
defaultPressure
;
}
/**
* Get the frequency (in time steps) at which Monte Carlo pressure changes should be attempted.
* Get the frequency (in time steps) at which Monte Carlo pressure changes should be attempted. If this is set to
* 0, the barostat is disabled.
*/
int
getFrequency
()
const
{
return
frequency
;
}
/**
* Set the frequency (in time steps) at which Monte Carlo pressure changes should be attempted.
* Set the frequency (in time steps) at which Monte Carlo pressure changes should be attempted. If this is set to
* 0, the barostat is disabled.
*/
void
setFrequency
(
int
freq
)
{
frequency
=
freq
;
...
...
openmmapi/src/MonteCarloBarostatImpl.cpp
View file @
7f367d00
...
...
@@ -61,7 +61,7 @@ void MonteCarloBarostatImpl::initialize(ContextImpl& context) {
}
void
MonteCarloBarostatImpl
::
updateContextState
(
ContextImpl
&
context
)
{
if
(
++
step
<
owner
.
getFrequency
())
if
(
++
step
<
owner
.
getFrequency
()
||
owner
.
getFrequency
()
==
0
)
return
;
step
=
0
;
...
...
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