Commit 14cdc9ae authored by peastman's avatar peastman
Browse files

Merge pull request #1372 from peastman/const

Marked usesPeriodicBoundaryConditions() as const
parents d2725cd3 bda3552f
...@@ -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];
......
...@@ -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;
......
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