"platforms/cuda/vscode:/vscode.git/clone" did not exist on "111844a2c2d9645e8c305f6cf916c45c0650d7d2"
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( ){
void ReferenceCustomGBIxn::setPeriodic( RealOpenMM* boxSize ) {
assert(boxSize[0] >= 2.0*cutoffDistance);
assert(boxSize[1] >= 2.0*cutoffDistance);
assert(boxSize[2] >= 2.0*cutoffDistance);
if (cutoff) {
assert(boxSize[0] >= 2.0*cutoffDistance);
assert(boxSize[1] >= 2.0*cutoffDistance);
assert(boxSize[2] >= 2.0*cutoffDistance);
}
periodic = true;
periodicBoxSize[0] = boxSize[0];
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