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
f2cdf70a
Unverified
Commit
f2cdf70a
authored
Jan 13, 2022
by
zhang-ivy
Committed by
GitHub
Jan 13, 2022
Browse files
Fix barostat frequency check (#3411)
* fix barostat frequency check * fix other barostats * fix error messages
parent
6eabb453
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8 additions
and
8 deletions
+8
-8
openmmapi/src/MonteCarloAnisotropicBarostat.cpp
openmmapi/src/MonteCarloAnisotropicBarostat.cpp
+2
-2
openmmapi/src/MonteCarloBarostat.cpp
openmmapi/src/MonteCarloBarostat.cpp
+2
-2
openmmapi/src/MonteCarloFlexibleBarostat.cpp
openmmapi/src/MonteCarloFlexibleBarostat.cpp
+2
-2
openmmapi/src/MonteCarloMembraneBarostat.cpp
openmmapi/src/MonteCarloMembraneBarostat.cpp
+2
-2
No files found.
openmmapi/src/MonteCarloAnisotropicBarostat.cpp
View file @
f2cdf70a
...
...
@@ -49,8 +49,8 @@ void MonteCarloAnisotropicBarostat::setDefaultPressure(const Vec3& pressure) {
}
void
MonteCarloAnisotropicBarostat
::
setFrequency
(
int
freq
)
{
if
(
freq
<
=
0
)
throw
OpenMMException
(
"Frequency
mus
t be
posi
tive"
);
if
(
freq
<
0
)
throw
OpenMMException
(
"Frequency
canno
t be
nega
tive"
);
frequency
=
freq
;
}
...
...
openmmapi/src/MonteCarloBarostat.cpp
View file @
f2cdf70a
...
...
@@ -50,8 +50,8 @@ void MonteCarloBarostat::setDefaultPressure(double pressure) {
}
void
MonteCarloBarostat
::
setFrequency
(
int
freq
)
{
if
(
freq
<
=
0
)
throw
OpenMMException
(
"Frequency
mus
t be
posi
tive"
);
if
(
freq
<
0
)
throw
OpenMMException
(
"Frequency
canno
t be
nega
tive"
);
frequency
=
freq
;
}
...
...
openmmapi/src/MonteCarloFlexibleBarostat.cpp
View file @
f2cdf70a
...
...
@@ -49,8 +49,8 @@ void MonteCarloFlexibleBarostat::setDefaultPressure(double pressure) {
}
void
MonteCarloFlexibleBarostat
::
setFrequency
(
int
freq
)
{
if
(
freq
<
=
0
)
throw
OpenMMException
(
"Frequency
mus
t be
posi
tive"
);
if
(
freq
<
0
)
throw
OpenMMException
(
"Frequency
canno
t be
nega
tive"
);
frequency
=
freq
;
}
...
...
openmmapi/src/MonteCarloMembraneBarostat.cpp
View file @
f2cdf70a
...
...
@@ -56,8 +56,8 @@ void MonteCarloMembraneBarostat::setDefaultSurfaceTension(double surfaceTension)
}
void
MonteCarloMembraneBarostat
::
setFrequency
(
int
freq
)
{
if
(
freq
<
=
0
)
throw
OpenMMException
(
"Frequency
mus
t be
posi
tive"
);
if
(
freq
<
0
)
throw
OpenMMException
(
"Frequency
canno
t be
nega
tive"
);
frequency
=
freq
;
}
...
...
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