From e8aa726df5f4786053c65ac5fba011898e507bf3 Mon Sep 17 00:00:00 2001 From: Gareth Aneurin Tribello Date: Tue, 28 Jan 2025 07:03:02 +0000 Subject: [PATCH] Attempted fix for LinkCells --- src/tools/LinkCells.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tools/LinkCells.cpp b/src/tools/LinkCells.cpp index fdf58fa24a..7a309bffeb 100644 --- a/src/tools/LinkCells.cpp +++ b/src/tools/LinkCells.cpp @@ -64,7 +64,7 @@ void LinkCells::buildCellLists( const std::vector& pos, const std::vecto if( link_cutoff::max()) ) { box[k][k] = link_cutoff*( 1 + std::ceil( (maxp[k] - minp[k])/link_cutoff ) ); } else { - box[k][k] = maxp[k] - minp[k]; + box[k][k] = maxp[k] - minp[k] + 1; } origin[k] = ( minp[k] + maxp[k] ) / 2; }