Skip to content

Commit

Permalink
some more explanation on the arbitrary stop
Browse files Browse the repository at this point in the history
  • Loading branch information
Iximiel committed Nov 7, 2023
1 parent c1d72f6 commit 88d32c7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/tools/NeighborList.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ void NeighborList::initialize() {
//that is about 1296000000 pairs (36000 atoms)
//36000 * 36000= 1296000000
//each pairIDs occupies 64 bit (where unsigned are 32bit integers)
//4294967296 is max(uint32)+1 and is more than 34 GB (correspond to a system of 65536 atoms)
if(nallpairs_ > 1296000000 )
plumed_merror() << "An error happened while allocating the neighbor "
"list, please decrease the number of atoms used";
Expand Down

0 comments on commit 88d32c7

Please sign in to comment.