From ad9614a402c4e32fa2ac75f230db790583926738 Mon Sep 17 00:00:00 2001 From: Gareth Aneurin Tribello Date: Thu, 30 Jan 2025 07:50:37 +0000 Subject: [PATCH] Another attempt to fix problem with new link cell version --- src/tools/LinkCells.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/tools/LinkCells.cpp b/src/tools/LinkCells.cpp index 0fd678488f..72a1a0d3a5 100644 --- a/src/tools/LinkCells.cpp +++ b/src/tools/LinkCells.cpp @@ -212,11 +212,7 @@ std::array LinkCells::findMyCell( const Vector& pos ) const { } Vector fpos=mypbc.realToScaled( mypos ); for(unsigned j=0; j<3; ++j) { - if( nopbc ) { - celn[j] = std::floor( fpos[j] * ncells[j] ); - } else { - celn[j] = std::floor( ( Tools::pbc(fpos[j]) + 0.5 ) * ncells[j] ); - } + celn[j] = std::floor( ( Tools::pbc(fpos[j]) + 0.5 ) * ncells[j] ); plumed_assert( celn[j]>=0 && celn[j]