Commit 7e2f9504 authored by Peter Eastman's avatar Peter Eastman
Browse files

Fixed error reported by Valgrind.

parent a28c8cf6
...@@ -123,9 +123,11 @@ ReferenceCustomGBIxn::~ReferenceCustomGBIxn( ){ ...@@ -123,9 +123,11 @@ ReferenceCustomGBIxn::~ReferenceCustomGBIxn( ){
void ReferenceCustomGBIxn::setPeriodic( RealOpenMM* boxSize ) { void ReferenceCustomGBIxn::setPeriodic( RealOpenMM* boxSize ) {
assert(boxSize[0] >= 2.0*cutoffDistance); if (cutoff) {
assert(boxSize[1] >= 2.0*cutoffDistance); assert(boxSize[0] >= 2.0*cutoffDistance);
assert(boxSize[2] >= 2.0*cutoffDistance); assert(boxSize[1] >= 2.0*cutoffDistance);
assert(boxSize[2] >= 2.0*cutoffDistance);
}
periodic = true; periodic = true;
periodicBoxSize[0] = boxSize[0]; periodicBoxSize[0] = boxSize[0];
periodicBoxSize[1] = boxSize[1]; periodicBoxSize[1] = boxSize[1];
......
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