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
14cdc9ae
Commit
14cdc9ae
authored
Jan 28, 2016
by
peastman
Browse files
Merge pull request #1372 from peastman/const
Marked usesPeriodicBoundaryConditions() as const
parents
d2725cd3
bda3552f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
openmmapi/include/openmm/System.h
openmmapi/include/openmm/System.h
+1
-1
openmmapi/src/System.cpp
openmmapi/src/System.cpp
+1
-1
No files found.
openmmapi/include/openmm/System.h
View file @
14cdc9ae
...
@@ -243,7 +243,7 @@ public:
...
@@ -243,7 +243,7 @@ public:
*
*
* @return true if at least one force uses PBC and false otherwise
* @return true if at least one force uses PBC and false otherwise
*/
*/
bool
usesPeriodicBoundaryConditions
();
bool
usesPeriodicBoundaryConditions
()
const
;
private:
private:
class
ConstraintInfo
;
class
ConstraintInfo
;
Vec3
periodicBoxVectors
[
3
];
Vec3
periodicBoxVectors
[
3
];
...
...
openmmapi/src/System.cpp
View file @
14cdc9ae
...
@@ -133,7 +133,7 @@ void System::setDefaultPeriodicBoxVectors(const Vec3& a, const Vec3& b, const Ve
...
@@ -133,7 +133,7 @@ void System::setDefaultPeriodicBoxVectors(const Vec3& a, const Vec3& b, const Ve
periodicBoxVectors
[
2
]
=
c
;
periodicBoxVectors
[
2
]
=
c
;
}
}
bool
System
::
usesPeriodicBoundaryConditions
()
{
bool
System
::
usesPeriodicBoundaryConditions
()
const
{
bool
uses_pbc
=
false
;
bool
uses_pbc
=
false
;
bool
all_forces_implement
=
true
;
bool
all_forces_implement
=
true
;
...
...
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