From c49e339318f1b660ac8a4cb2d5e1f6cb01c97686 Mon Sep 17 00:00:00 2001 From: Gareth Aneurin Tribello Date: Mon, 20 Jan 2025 14:57:04 +0000 Subject: [PATCH] Added code to link cell to ensure all atoms are put in a single link cell if there are no pbcs --- src/tools/LinkCells.cpp | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/src/tools/LinkCells.cpp b/src/tools/LinkCells.cpp index 603cfe7849..ab55875b2f 100644 --- a/src/tools/LinkCells.cpp +++ b/src/tools/LinkCells.cpp @@ -47,13 +47,15 @@ void LinkCells::buildCellLists( const std::vector& pos, const std::vecto plumed_assert( cutoffwasset && pos.size()==indices.size() ); // Must be able to check that pbcs are not nonsensical in some way?? -- GAT - - double determinant = pbc.getBox().determinant(); - - plumed_assert(determinant > epsilon) <<"Cell lists cannot be built when passing a box with null volume. Volume is "< epsilon) <<"Cell lists cannot be built when passing a box with null volume. Volume is "<& pos, const std::vecto lcell_starts.resize( ncellstot ); } // Clear nlcells - for(unsigned i=0; i