Skip to content
Snippets Groups Projects
Commit c218e5ac authored by Giovanni Bussi's avatar Giovanni Bussi
Browse files

Merge remote-tracking branch 'origin/v2.3' into v2.3

parents daa2c9d4 4f2317af
No related branches found
No related tags found
No related merge requests found
......@@ -139,6 +139,7 @@ void GridVessel::getIndices( const std::vector<double>& point, std::vector<unsig
for(unsigned i=0;i<dimension;++i){
indices[i]=std::floor( (point[i] - min[i])/dx[i] );
if( pbc[i] ) indices[i]=indices[i]%nbin[i];
else if( indices[i]>nbin[i] ) plumed_merror("point is outside grid range");
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment